[HIPIFY][tests][fix] Add correct CUDA version detection while testing

+ Add lit.cfg.in for CMake variables substitution to now generated lit.cfg
+ Exclude lit.cfg
+ Exclude CUDA 9.0 tests if CUDA < 9.0
+ Report CUDA version before running tests


[ROCm/clr commit: 2b01f1eb6f]
Bu işleme şunda yer alıyor:
Evgeny Mankov committed 2018-12-11 22:03:11 +03:00
1 ebeveyn b5934ac50b
işleme d38bbc99aa
2 files changed
+18 -2

No files matched your search

@@ -23,13 +23,23 @@ config.test_source_root = os.path.dirname(__file__)
config.excludes = ['cmdparser.hpp']
config.cuda_version = "@CUDA_VERSION@"
if config.cuda_version not in ['10.0']:
cuda_version_major = int("@CUDA_VERSION_MAJOR@")
cuda_version = "@CUDA_VERSION@"
if cuda_version_major < 9:
config.excludes.append('cuSPARSE_04.cu')
config.excludes.append('cuSPARSE_05.cu')
config.excludes.append('cuSPARSE_06.cu')
config.excludes.append('cuSPARSE_07.cu')
if cuda_version_major < 10:
config.excludes.append('cuSPARSE_08.cu')
config.excludes.append('cuSPARSE_09.cu')
config.excludes.append('cuSPARSE_10.cu')
config.excludes.append('cuSPARSE_11.cu')
print("CUDA " + cuda_version + " will be used for testing.")
# test_exec_root: The path where tests are located (default is the test suite root).
#config.test_exec_root = config.test_source_root