Skip to content

Commit 31692a8

Browse files
authored
[SYCLomatic] Fix 2 lit cases (#2770)
Signed-off-by: Jiang, Zhiwei <zhiwei.jiang@intel.com>
1 parent 03b47e7 commit 31692a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang/test/dpct/device_prop/cudaGetPointer.cu

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

66

77
#include <cuda.h>

clang/test/dpct/device_prop/cudaGetPointer_none_usm.cu

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

77
#include <cuda.h>
88
void test_attribute() {

0 commit comments

Comments
 (0)