SConstruct: Provide NVVMIR_LIBRARY_DIR environment variable to NVCC if variable is set
GitHub
Bug
git-commit
git-author Manuel Schiller
[git-p4: depot-paths = "//sw/gpgpu/thrust/": change = 24246898]
MODIFY
SConstruct
SConstruct
@@ -456,6 +456,10 @@ elif master_env['PLATFORM'] == 'win32':
master_env['ENV']['TBBROOT'] = os.environ['TBBROOT']
master_env['ENV']['PATH'] += ';' + tbb_installation(master_env)[0]
+# if the environment variable NVVMIR_LIBRARY_DIR is set, provide it to nvcc to prevent the following error:
+# "nvcc fatal : Path to libdevice library not specified"
+if 'NVVMIR_LIBRARY_DIR' in os.environ:
+ master_env['ENV']['NVVMIR_LIBRARY_DIR'] = os.environ['NVVMIR_LIBRARY_DIR']
# get the list of requested backends
host_backends = master_env.subst('$host_backend').split()

SConstruct: Provide NVVMIR_LIBRARY_DIR environment variable to NVCC if variable is set
GitHub #724
Bug 2157885
git-commit 6c2b8c21b7324c8459f6d1d13125120e2f95912b
git-author Manuel Schiller <manuel.schiller@caligano.de>

[git-p4: depot-paths = "//sw/gpgpu/thrust/": change = 24246898]