[cig-commits] r18934 - in short/3D/PyLith/trunk: libsrc/pylith/feassemble modulesrc/include
knepley at geodynamics.org
knepley at geodynamics.org
Sun Sep 18 13:42:21 PDT 2011
Author: knepley
Date: 2011-09-18 13:42:20 -0700 (Sun, 18 Sep 2011)
New Revision: 18934
Modified:
short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityImplicitCUDA.cc
short/3D/PyLith/trunk/modulesrc/include/pylithtypes.i
Log:
Added PETSc configure info to SWIG
Modified: short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityImplicitCUDA.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityImplicitCUDA.cc 2011-09-18 18:02:48 UTC (rev 18933)
+++ short/3D/PyLith/trunk/libsrc/pylith/feassemble/ElasticityImplicitCUDA.cc 2011-09-18 20:42:20 UTC (rev 18934)
@@ -471,10 +471,14 @@
#endif
} // for
+ // Copy cpu input to gpu
+
const int elementBatchSize = 32;
const int numConcurrentElements = 1;
launchKernel(spaceDim, numBasis, elementBatchSize, numConcurrentElements, cells->size(), analytic_gpu, geometry_gpu, elemMat_gpu);
+ // Copy gpu output to cpu
+
// Update global matrix
for (SieveMesh::label_sequence::iterator c_iter=cellsBegin;
c_iter != cellsEnd;
Modified: short/3D/PyLith/trunk/modulesrc/include/pylithtypes.i
===================================================================
--- short/3D/PyLith/trunk/modulesrc/include/pylithtypes.i 2011-09-18 18:02:48 UTC (rev 18933)
+++ short/3D/PyLith/trunk/modulesrc/include/pylithtypes.i 2011-09-18 20:42:20 UTC (rev 18934)
@@ -16,6 +16,8 @@
// ======================================================================
//
+%include "petscconf.h"
+
#if defined(PETSC_USE_REAL_SINGLE)
#define PYLITH_USE_SCALAR_SINGLE
typedef float PylithScalar;
More information about the CIG-COMMITS
mailing list