Skip to content

Commit 8d96283

Browse files
authored
[SYCLomatic][LIT] Update 4 nvtx lit test scripts (#2835)
Signed-off-by: chenwei.sun <chenwei.sun@intel.com>
1 parent 4c6261d commit 8d96283

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

clang/test/dpct/NVTX/nvtx3_a.cu

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// UNSUPPORTED: cuda-8.0, cuda-9.0, cuda-9.1, cuda-9.2
2-
// RUN: dpct --format-range=none --out-root %T %s --cuda-include-path="%cuda-path/include"
3-
// RUN: FileCheck %s --match-full-lines --input-file %T/nvtx3_a.dp.cpp
4-
// RUN: %if build_lit %{icpx -c -fsycl %T/nvtx3_a.dp.cpp -o %T/nvtx3_a.dp.o %}
2+
// UNSUPPORTED: v8.0, v9.0, v9.1, v9.2
3+
// RUN: dpct --format-range=none --out-root %T/nvtx3_a %s --cuda-include-path="%cuda-path/include"
4+
// RUN: FileCheck %s --match-full-lines --input-file %T/nvtx3_a/nvtx3_a.dp.cpp
5+
// RUN: %if build_lit %{icpx -c -fsycl %T/nvtx3_a/nvtx3_a.dp.cpp -o %T/nvtx3_a/nvtx3_a.dp.o %}
56

67
#include "nvtx3/nvToolsExt.h"
78
#include "nvtx3/nvToolsExtCudaRt.h"

clang/test/dpct/NVTX/nvtx3_b.cu

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// UNSUPPORTED: cuda-8.0, cuda-9.0, cuda-9.1, cuda-9.2
2-
// RUN: dpct --format-range=none -in-root %S -out-root %T %s --cuda-include-path="%cuda-path/include" -- -std=c++14 -x cuda --cuda-host-only
3-
// RUN: FileCheck --input-file %T/nvtx3_b.dp.cpp --match-full-lines %s
2+
// UNSUPPORTED: v8.0, v9.0, v9.1, v9.2
3+
// RUN: dpct --format-range=none -in-root %S -out-root %T/nvtx3_b %s --cuda-include-path="%cuda-path/include" -- -std=c++14 -x cuda --cuda-host-only
4+
// RUN: FileCheck --input-file %T/nvtx3_b/nvtx3_b.dp.cpp --match-full-lines %s
45

56
// CHECK: #include <sycl/sycl.hpp>
67
// CHECK: #include <dpct/dpct.hpp>

clang/test/dpct/NVTX/nvtx_a.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// UNSUPPORTED: system-windows
22
// UNSUPPORTED: cuda-8.0, cuda-9.0, cuda-9.1, cuda-9.2, cuda-12.9
3-
// RUN: dpct --format-range=none --out-root %T %s --cuda-include-path="%cuda-path/include"
4-
// RUN: FileCheck %s --match-full-lines --input-file %T/nvtx_a.dp.cpp
5-
// RUN: %if build_lit %{icpx -c -fsycl %T/nvtx_a.dp.cpp -o %T/nvtx_a.dp.o %}
3+
// RUN: dpct --format-range=none --out-root %T/nvtx_a %s --cuda-include-path="%cuda-path/include"
4+
// RUN: FileCheck %s --match-full-lines --input-file %T/nvtx_a/nvtx_a.dp.cpp
5+
// RUN: %if build_lit %{icpx -c -fsycl %T/nvtx_a/nvtx_a.dp.cpp -o %T/nvtx_a/nvtx_a.dp.o %}
66

77
#include "nvToolsExt.h"
88
#include "nvToolsExtCudaRt.h"

clang/test/dpct/NVTX/nvtx_b.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// UNSUPPORTED: system-windows
22
// UNSUPPORTED: cuda-8.0, cuda-9.0, cuda-9.1, cuda-9.2, cuda-12.9
3-
// RUN: dpct --format-range=none -in-root %S -out-root %T %s --cuda-include-path="%cuda-path/include" -- -std=c++14 -x cuda --cuda-host-only
4-
// RUN: FileCheck --input-file %T/nvtx_b.dp.cpp --match-full-lines %s
3+
// RUN: dpct --format-range=none -in-root %S -out-root %T/nvtx_b %s --cuda-include-path="%cuda-path/include" -- -std=c++14 -x cuda --cuda-host-only
4+
// RUN: FileCheck --input-file %T/nvtx_b/nvtx_b.dp.cpp --match-full-lines %s
55

66
// CHECK: #include <sycl/sycl.hpp>
77
// CHECK: #include <dpct/dpct.hpp>

0 commit comments

Comments
 (0)