Add rpath for CUDA library (only tested on linux 64 bit)

parent c880d637
...@@ -43,6 +43,8 @@ print 'under certain conditions.' ...@@ -43,6 +43,8 @@ print 'under certain conditions.'
print 'Details can be found in the file \'gpl.txt\'.' print 'Details can be found in the file \'gpl.txt\'.'
print '' print ''
import os
# #
# set possible variables # set possible variables
# #
...@@ -178,8 +180,10 @@ if env['parallelization'] in ['cuda', 'mpi_with_cuda']: ...@@ -178,8 +180,10 @@ if env['parallelization'] in ['cuda', 'mpi_with_cuda']:
# set the directories for the CudaTool # set the directories for the CudaTool
if 'cudaToolkitDir' in env: if 'cudaToolkitDir' in env:
env['CUDA_TOOLKIT_PATH'] = env['cudaToolkitDir'] env['CUDA_TOOLKIT_PATH'] = env['cudaToolkitDir']
env.Append(RPATH=[os.path.join(env['cudaToolkitDir'], 'lib64')])
if 'cudaSDKDir' in env: if 'cudaSDKDir' in env:
env['CUDA_SDK_PATH'] = env['cudaSDKDir'] env['CUDA_SDK_PATH'] = env['cudaSDKDir']
env.Append(RPATH=[os.path.join(env['cudaSDKDir'], 'lib64')])
env.Tool('CudaTool', toolpath = ['.']) env.Tool('CudaTool', toolpath = ['.'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment