[petsc-dev] CUDA 3.2
Jose E. Roman
jroman at dsic.upv.es
Tue Oct 19 10:12:08 CDT 2010
Probably you already tried, but I successfully built petsc-dev with CUDA 3.2 and the latest versions of thrust and cusp. See below the required patch for BuildSystem.
Do you plan to support the latest versions only?
Jose
diff -r 7fcb25f97314 config/packages/cusp.py
--- a/config/packages/cusp.py Fri Oct 15 23:22:39 2010 -0500
+++ b/config/packages/cusp.py Tue Oct 19 17:10:15 2010 +0200
@@ -4,7 +4,7 @@
class Configure(config.package.Package):
def __init__(self, framework):
config.package.Package.__init__(self, framework)
- self.version = '101' #Version 0.1.1
+ self.version = '102' #Version 0.1.2
self.versionStr = str(int(self.version)/100000) + '.' + str(int(self.version)/100%1000) + '.' + str(int(self.version)%100)
self.download = ['http://cusp-library.googlecode.com/files/cusp-v'+self.versionStr+'.zip']
self.includes = ['cusp/version.h']
diff -r 7fcb25f97314 config/packages/thrust.py
--- a/config/packages/thrust.py Fri Oct 15 23:22:39 2010 -0500
+++ b/config/packages/thrust.py Tue Oct 19 17:10:15 2010 +0200
@@ -4,7 +4,7 @@
class Configure(config.package.Package):
def __init__(self, framework):
config.package.Package.__init__(self, framework)
- self.version = '100201' #Version 1.2.1
+ self.version = '100300' #Version 1.3.0
self.versionStr = str(int(self.version)/100000) + '.' + str(int(self.version)/100%1000) + '.' + str(int(self.version)%100)
self.download = ['http://thrust.googlecode.com/files/thrust-v'+self.versionStr+'.zip']
self.includes = ['thrust/version.h']
diff -r 7fcb25f97314 config/setCompilers.py
--- a/config/setCompilers.py Fri Oct 15 23:22:39 2010 -0500
+++ b/config/setCompilers.py Tue Oct 19 17:10:15 2010 +0200
@@ -513,7 +513,7 @@
def checkCUDACompiler(self):
'''Locate a functional CUDA compiler'''
- requiredVersion = '3.1'
+ requiredVersion = '3.2'
if 'with-cudac' in self.framework.argDB and self.framework.argDB['with-cudac'] == '0':
if 'CUDAC' in self.framework.argDB:
del self.framework.argDB['CUDAC']
More information about the petsc-dev
mailing list