Skip to content

Commit

Permalink
[HIPIFY][Tensor][tests][fix] Do not run Tensor tests if `CUDA_TENSO…
Browse files Browse the repository at this point in the history
…R_ROOT_DIR` is not specified
  • Loading branch information
emankov committed Nov 18, 2024
1 parent 012cf9f commit d50e12a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
Expand Down
4 changes: 4 additions & 0 deletions tests/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d50e12a

Please sign in to comment.