Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions clang/test/dpct/lit.local.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -124,36 +124,38 @@ else:

# Run the dpct sanity test.
if not config.unsupported:
skipped_cases = ["cudnn_sanity.cu", "nccl_sanity.cu", "nvshmem.cu", "cutensor.cu"]
complete_process = run_sanity("cudnn_sanity.cu")
skipped_cases = []
err_message = ""

complete_process = run_sanity("cudnn_sanity.cu")
if complete_process.returncode != 0:
if "'cudnn.h' file not found" in complete_process.stdout:
err_message += "'cudnn.h' header file not found in platform. " + \
"Please make sure install the header file of cuDNN and " + \
"export cudnn.h in CPATH\n"
skipped_cases.extend(get_skipped_cases_with_string("<cudnn.h>"))
complete_process = run_sanity("nccl_sanity.cu")

if complete_process.returncode != 0:
if "'nccl.h' file not found" in complete_process.stdout:
err_message += "'nccl.h' header file not found in platform. " + \
"Please make sure install the header file of NCCL and " + \
"export nccl.h in CPATH.\n"
skipped_cases.extend(get_skipped_cases_with_string("<nccl.h>"))

complete_process = run_sanity("nvshmem.cu")
if complete_process.returncode != 0:
if "'nvshmem.h' file not found" in complete_process.stdout:
err_message += "'nvshmem.h' header file not found in platform. " + \
"Please make sure install the header file of nvshmem and " + \
"export nvshmem.h in CPATH.\n"
skipped_cases.extend(get_skipped_cases_with_string("<nccl.h>"))
if "'nvshmem.h' file not found" in complete_process.stdout:
err_message += "'nvshmem.h' header file not found in platform. " + \
"Please make sure install the header file of nvshmem and " + \
"export nvshmem.h in CPATH.\n"
skipped_cases.extend(get_skipped_cases_with_string("<nvshmem.h>"))

complete_process = run_sanity("cutensor.cu")
if complete_process.returncode != 0:
if "'cutensor.h' file not found" in complete_process.stdout:
err_message += "'cutensor.h' header file not found in platform. " + \
"Please make sure install the header file of cuTENSOR and " + \
"export cutensor.h in CPATH.\n"
skipped_cases.extend(get_skipped_cases_with_string("<cutensor.h>"))
if "'cutensor.h' file not found" in complete_process.stdout:
err_message += "'cutensor.h' header file not found in platform. " + \
"Please make sure install the header file of cuTENSOR and " + \
"export cutensor.h in CPATH.\n"
skipped_cases.extend(get_skipped_cases_with_string("<cutensor.h>"))

if (err_message):
sys.stderr.write(err_message)
Expand Down
Loading