Skip to content

Commit 93ab8e9

Browse files
authored
[SYCLomatic][NFC] Skip lit test "cutensor.cu" if header file "cutensor.h" of cuTENSOR library is not found (#2809)
Signed-off-by: chenwei.sun <chenwei.sun@intel.com>
1 parent 96fb121 commit 93ab8e9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

clang/test/dpct/lit.local.cfg

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ else:
124124

125125
# Run the dpct sanity test.
126126
if not config.unsupported:
127-
skipped_cases = ["cudnn_sanity.cu", "nccl_sanity.cu", "nvshmem.cu"]
127+
skipped_cases = ["cudnn_sanity.cu", "nccl_sanity.cu", "nvshmem.cu", "cutensor.cu"]
128128
complete_process = run_sanity("cudnn_sanity.cu")
129129
err_message = ""
130130
if complete_process.returncode != 0:
@@ -147,6 +147,13 @@ if not config.unsupported:
147147
"Please make sure install the header file of nvshmem and " + \
148148
"export nvshmem.h in CPATH.\n"
149149
skipped_cases.extend(get_skipped_cases_with_string("<nccl.h>"))
150+
complete_process = run_sanity("cutensor.cu")
151+
if complete_process.returncode != 0:
152+
if "'cutensor.h' file not found" in complete_process.stdout:
153+
err_message += "'cutensor.h' header file not found in platform. " + \
154+
"Please make sure install the header file of cuTENSOR and " + \
155+
"export cutensor.h in CPATH.\n"
156+
skipped_cases.extend(get_skipped_cases_with_string("<cutensor.h>"))
150157

151158
if (err_message):
152159
sys.stderr.write(err_message)

0 commit comments

Comments
 (0)