From ff6057d1ff4147bb7b06f23a5312d1d3b0dd05eb Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Sun, 20 Oct 2019 20:08:56 +0300 Subject: [PATCH] [HIPIFY][tests] Set -I for CUDA path instead of --cuda-path for LLVM < 4 --- hipamd/tests/hipify-clang/lit.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hipamd/tests/hipify-clang/lit.cfg b/hipamd/tests/hipify-clang/lit.cfg index 0a40dda623..c9c5b83bd3 100644 --- a/hipamd/tests/hipify-clang/lit.cfg +++ b/hipamd/tests/hipify-clang/lit.cfg @@ -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 + '"'))