diff --git a/CMakeLists.txt b/CMakeLists.txt index be1c01c6..44b0f17e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -335,7 +335,7 @@ if(HIPIFY_CLANG_TESTS OR HIPIFY_CLANG_TESTS_ONLY) endif() if(CUDA_TENSOR_ROOT_DIR STREQUAL "") - set(CUDA_TENSOR_ROOT_DIR OFF) + set(CUDA_TENSOR_ROOT_DIR OFF) endif() if(CUDA_CUB_ROOT_DIR STREQUAL "") diff --git a/tests/lit.cfg b/tests/lit.cfg index 678cc760..7bffc581 100644 --- a/tests/lit.cfg +++ b/tests/lit.cfg @@ -40,6 +40,10 @@ if not config.cuda_cub_root or config.cuda_cub_root == "OFF": config.excludes.append('cub_03.cu') print("WARN: CUB tests are excluded because CUDA_CUB_ROOT_DIR is not specified") warns = True +if not config.cuda_tensor_root or config.cuda_tensor_root == "OFF": + config.excludes.append('cutensor2hiptensor.cu') + print("WARN: cuTensor tests are excluded because CUDA_TENSOR_ROOT_DIR is not specified") + warns = True if warns: print(delimiter)