[HIPIFY][tests] Set -I for CUDA path instead of --cuda-path for LLVM < 4

이 커밋은 다음에 포함됨:
Evgeny Mankov가 2019-10-20 20:08:56 +03:00를 커밋했습니다
1 부모 7fb633bcc7
커밋 6cfea9b600
1 파일이 변경됨
+5 -1
+5 -1
파일 보기
@@ -124,7 +124,11 @@ elif config.cuda_cub_root:
else:
config.substitutions.append(("%clang_args", clang_arguments % config.cuda_sdk_root))
hipify_arguments = "--cuda-path='%s'"
if config.llvm_version_major < 4:
hipify_arguments = "-I'%s'/include"
else:
hipify_arguments = "--cuda-path='%s'"
config.substitutions.append(("%hipify_args", hipify_arguments % config.cuda_root))
config.substitutions.append(("hipify", '"' + hipify_path + "/hipify-clang" + '"'))
config.substitutions.append(("%run_test", '"' + config.test_source_root + "/run_test" + run_test_ext + '"'))