[cig-commits] r18938 - in short/3D/PyLith/trunk: . pylith/apps

brad at geodynamics.org brad at geodynamics.org
Mon Sep 19 10:30:41 PDT 2011


Author: brad
Date: 2011-09-19 10:30:41 -0700 (Mon, 19 Sep 2011)
New Revision: 18938

Modified:
   short/3D/PyLith/trunk/configure.ac
   short/3D/PyLith/trunk/pylith/apps/PetscApplication.py
Log:
Removed tests for pycuda (no longer used).

Modified: short/3D/PyLith/trunk/configure.ac
===================================================================
--- short/3D/PyLith/trunk/configure.ac	2011-09-18 23:21:19 UTC (rev 18937)
+++ short/3D/PyLith/trunk/configure.ac	2011-09-19 17:30:41 UTC (rev 18938)
@@ -215,7 +215,6 @@
 
 # CUDA
 if test "$enable_cuda" = "yes" ; then
-  CIT_PYTHON_MODULE([pycuda])
   CIT_CUDA_INCDIR
   CIT_CUDA_LIB
   CIT_CUDA_COMPILER

Modified: short/3D/PyLith/trunk/pylith/apps/PetscApplication.py
===================================================================
--- short/3D/PyLith/trunk/pylith/apps/PetscApplication.py	2011-09-18 23:21:19 UTC (rev 18937)
+++ short/3D/PyLith/trunk/pylith/apps/PetscApplication.py	2011-09-19 17:30:41 UTC (rev 18938)
@@ -60,20 +60,8 @@
     """
     self.petsc.initialize()
 
-    # Test for CUDA
     try:
-      import pycuda
-      import pycuda.autoinit
-      self._info.log('Initialized CUDA')
-    except ImportError:
-      self._info.log('Could not initialize CUDA')
-      # :TODO: Set some flag here to disable CUDA. Optionally also
-      # allow user to turn off use of CUDA.
-    except RuntimeError, e:
-      self._info.log('Error in CUDA initialization\n'+str(e))
 
-    try:
-
       self.main(*args, **kwds)
 
     except Exception, err:



More information about the CIG-COMMITS mailing list