Skip to content

Commit 47e3ce4

Browse files
committed
Update test
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
1 parent 5407ff9 commit 47e3ce4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

clang/test/dpct/kernel_1d_range.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ int foo5() {
614614
global4<<<1,1>>>();
615615
return 0;
616616
}
617-
617+
#ifndef NO_BUILD_TEST
618618
//CHECK:#define TIDx2 sycl::ext::oneapi::this_work_item::get_nd_item<dpct_placeholder /* Fix the dimension manually */>().get_local_id(0)
619619
#define TIDx2 threadIdx.x
620620

@@ -648,7 +648,7 @@ int foo6() {
648648
global6<<<dim3(1,2,3),1>>>();
649649
return 0;
650650
}
651-
651+
#endif
652652
//CHECK:void global7() {
653653
//CHECK-NEXT: unsigned int tid = sycl::ext::oneapi::this_work_item::get_nd_item<3>().get_local_id(2);
654654
//CHECK-NEXT:}

clang/test/dpct/kernel_1d_range_sync_api.cu

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// UNSUPPORTED: v8.0
33
// RUN: dpct --format-range=none --assume-nd-range-dim=1 -out-root %T/kernel_1d_range_sync_api %s --cuda-include-path="%cuda-path/include" -- -x cuda --cuda-host-only
44
// RUN: FileCheck --input-file %T/kernel_1d_range_sync_api/kernel_1d_range_sync_api.dp.cpp --match-full-lines %s
5-
// RUN: %if build_lit %{icpx -c -fsycl %T/kernel_1d_range_sync_api/kernel_1d_range_sync_api.dp.cpp -o %T/kernel_1d_range_sync_api/kernel_1d_range_sync_api.dp.o %}
5+
// RUN: %if build_lit %{icpx -c -DNO_BUILD_TEST -fsycl %T/kernel_1d_range_sync_api/kernel_1d_range_sync_api.dp.cpp -o %T/kernel_1d_range_sync_api/kernel_1d_range_sync_api.dp.o %}
66

77

88
#include "cooperative_groups.h"
@@ -26,7 +26,7 @@ __global__ void global1() {
2626
// CHECK: int GroupSize = sycl::ext::oneapi::this_work_item::get_work_group<1>().get_local_linear_range();
2727
int GroupSize = block.size();
2828
}
29-
29+
#ifndef NO_BUILD_TEST
3030
// CHECK: #define TB(b) auto b = sycl::ext::oneapi::this_work_item::get_work_group<dpct_placeholder /* Fix the dimension manually */>();
3131
#define TB(b) cg::thread_block b = cg::this_thread_block();
3232

@@ -64,3 +64,4 @@ int foo5() {
6464

6565
return 0;
6666
}
67+
#endif

0 commit comments

Comments
 (0)