Update package.py with/out CUDA support (#2266)

Adding some lines to prevent from using any CUDA stuff, if NVIDIA CUDA Developement Kit was installed before.
This commit is contained in:
christianbaensch 2016-11-09 16:37:40 +01:00 committed by Todd Gamblin
parent e5edac8af6
commit 2e11e7e456

View File

@ -63,6 +63,18 @@ def install(self, spec, prefix):
'CC=cc',
'CXX=c++',
'F77=f77',
'CUDA_ROOT =',
'GPU_BLAS_PATH =',
'GPU_CONFIG =',
'CUDA_PATH =',
'CUDART_LIB =',
'CUBLAS_LIB =',
'CUDA_INC_PATH =',
'NV20 =',
'NV30 =',
'NV35 =',
'NVCC = echo',
'NVCCFLAGS =',
])
if '+fpic' in spec:
make_args.extend(['CFLAGS=-fPIC', 'FFLAGS=-fPIC'])