Skip to content

Commit d11a3a4

Browse files
authored
[SYCLomatic] Fix the lit cases failed on Windows platform. (#2244)
Signed-off-by: Chen <[email protected]>
1 parent 70238cc commit d11a3a4

File tree

10 files changed

+18
-7
lines changed

10 files changed

+18
-7
lines changed

clang/test/dpct/fix_internal_error_2.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// UNSUPPORTED: cuda-8.0, cuda-11.7, cuda-11.8, cuda-12.0, cuda-12.1, cuda-12.2, cuda-12.3
2-
// UNSUPPORTED: v8.0, v11.7, v11.8, v12.0, v12.1, v12.2, v12.3
1+
// UNSUPPORTED: cuda-8.0, cuda-11.7, cuda-11.8, cuda-12.0, cuda-12.1, cuda-12.2, cuda-12.3, cuda-12.4
2+
// UNSUPPORTED: v8.0, v11.7, v11.8, v12.0, v12.1, v12.2, v12.3, v12.4
33
// RUN: mkdir %T/fix_internal_error_2
44
// RUN: dpct --out-root %T/fix_internal_error_2 %s --cuda-include-path="%cuda-path/include" > %T/fix_internal_error_2/output.txt 2>&1 || true
55
// RUN: grep "dpct internal error" %T/fix_internal_error_2/output.txt | wc -l > %T/fix_internal_error_2/wc_output.txt || true

clang/test/dpct/soft_link/soft_link_dir/link/test

Lines changed: 0 additions & 1 deletion
This file was deleted.

clang/test/dpct/soft_link/soft_link_dir/vector_add_format.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// UNSUPPORTED: system-windows
12
// RUN: cd %S/link && rm -rf test && ln -nfs ../target test
23
// RUN: dpct --in-root=%S --out-root=%T/out --cuda-include-path="%cuda-path/include" --process-all -- -I %S/link/test -x cuda --cuda-host-only
34
// RUN: FileCheck --input-file %T/out/vector_add_format.dp.cpp --match-full-lines %s
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
../../target/test/test.hpp
1+
// CHECK: #include <sycl/sycl.hpp>
2+
// CHECK: #include <dpct/dpct.hpp>
3+
#include <cuda.h>
4+
int test() {
5+
return 0;
6+
}

clang/test/dpct/soft_link/soft_link_file/vector_add_format.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// UNSUPPORTED: system-windows
12
// RUN: cd %S/link/test && rm test.hpp && ln -nfs ../../target/test/test.hpp test.hpp
23
// RUN: dpct --in-root=%S --out-root=%T/out --cuda-include-path="%cuda-path/include" --process-all -- -I %S/link -x cuda --cuda-host-only
34
// RUN: FileCheck --input-file %T/out/vector_add_format.dp.cpp --match-full-lines %s
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
../../target/test/test.cuh
1+
// CHECK: #include <sycl/sycl.hpp>
2+
// CHECK: #include <dpct/dpct.hpp>
3+
#include <cuda.h>
4+
int test() {
5+
return 0;
6+
}

clang/test/dpct/soft_link/soft_link_file_rename/vector_add_format.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// UNSUPPORTED: system-windows
12
// RUN: cd %S/link/test && rm test.cuh && ln -nfs ../../target/test/test.cuh test.cuh
23
// RUN: dpct --in-root=%S --out-root=%T/out --cuda-include-path="%cuda-path/include" --process-all -- -I %S/link -x cuda --cuda-host-only
34
// RUN: FileCheck --input-file %T/out/vector_add_format.dp.cpp --match-full-lines %s

clang/test/dpct/soft_link/soft_link_mul_dir2/link/hello/target_soft_link

Lines changed: 0 additions & 1 deletion
This file was deleted.

clang/test/dpct/soft_link/soft_link_mul_dir2/link/link

Lines changed: 0 additions & 1 deletion
This file was deleted.

clang/test/dpct/soft_link/soft_link_mul_dir2/vector_add_format.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// UNSUPPORTED: system-windows
12
// RUN: cd %S/link/hello && rm -rf target_soft_link && ln -nfs ../../target target_soft_link && cd %S/link && rm -rf link && ln -nfs hello link
23
// RUN: dpct --in-root=%S --out-root=%T/out --cuda-include-path="%cuda-path/include" --process-all -- -I %S/link/link/target_soft_link -x cuda --cuda-host-only
34
// RUN: FileCheck --input-file %T/out/vector_add_format.dp.cpp --match-full-lines %s

0 commit comments

Comments
 (0)