Skip to content

Commit 073c79f

Browse files
committed
split test case specific to cuda versions
Signed-off-by: chenwei.sun <chenwei.sun@intel.com>
1 parent 327369d commit 073c79f

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// UNSUPPORTED: cuda-8.0, cuda-9.0, cuda-9.1, cuda-9.2, cuda-10.0, cuda-10.1, cuda-10.2, cuda-11.0, cuda-11.1
2+
// UNSUPPORTED: v8.0, v9.0, v9.1, v9.2, v10.0, v10.1, v10.2, v11.0, v11.1
3+
4+
// RUN: dpct --cuda-include-path="%cuda-path/include" --query-api-mapping=cudaEventRecordWithFlags | FileCheck %s -check-prefix=cudaEventRecordWithFlags
5+
// cudaEventRecordWithFlags: CUDA API:
6+
// cudaEventRecordWithFlags-NEXT: cudaEventRecordWithFlags(event /*cudaEvent_t*/, stream /*cudaStream_t*/,
7+
// cudaEventRecordWithFlags-NEXT: cudaEventRecordDefault /*unsigned int*/);
8+
// cudaEventRecordWithFlags-NEXT: Is migrated to (with the option --enable-profiling):
9+
// cudaEventRecordWithFlags-NEXT: dpct::sync_barrier(event /*cudaEvent_t*/, stream /*unsigned int*/);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// UNSUPPORTED: cuda-8.0, cuda-9.1, cuda-9.2, cuda-10.0, cuda-10.1, cuda-10.2, cuda-11.0, cuda-11.1, cuda-11.2, cuda-11.3, cuda-11.4, cuda-11.5, cuda-11.6, cuda-11.7, cuda-11.8
2+
// UNSUPPORTED: v8.0, v9.1, v9.2, v10.0, v10.1, v10.2, v11.0, v11.1, v11.2, v11.3, v11.4, v11.5, v11.6, v11.7, v11.8
3+
4+
// RUN: dpct --cuda-include-path="%cuda-path/include" --query-api-mapping=cudaGetDeviceProperties_v2 | FileCheck %s -check-prefix=cudaGetDeviceProperties_v2
5+
// cudaGetDeviceProperties_v2: CUDA API:
6+
// cudaGetDeviceProperties_v2-NEXT: cudaDeviceProp *pd;
7+
// cudaGetDeviceProperties_v2-NEXT: cudaGetDeviceProperties_v2(pd /*cudaDeviceProp* */, i /*int*/);
8+
// cudaGetDeviceProperties_v2-NEXT: Is migrated to:
9+
// cudaGetDeviceProperties_v2-NEXT: dpct::device_info *pd;
10+
// cudaGetDeviceProperties_v2-NEXT: dpct::get_device(i).get_device_info(*pd);

clang/test/dpct/query_api_mapping/Runtime/test.cu

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,3 @@
555555
// CUDAPROFILERSTOP-NEXT: cudaProfilerStop();
556556
// CUDAPROFILERSTOP-NEXT: The API is Removed.
557557
// CUDAPROFILERSTOP-EMPTY:
558-
// RUN: dpct --cuda-include-path="%cuda-path/include" --query-api-mapping=cudaEventRecordWithFlags | FileCheck %s -check-prefix=cudaEventRecordWithFlags
559-
// cudaEventRecordWithFlags: CUDA API:
560-
// cudaEventRecordWithFlags-NEXT: cudaEventRecordWithFlags(event /*cudaEvent_t*/, stream /*cudaStream_t*/,
561-
// cudaEventRecordWithFlags-NEXT: cudaEventRecordDefault /*unsigned int*/);
562-
// cudaEventRecordWithFlags-NEXT: Is migrated to (with the option --enable-profiling):
563-
// cudaEventRecordWithFlags-NEXT: dpct::sync_barrier(event /*cudaEvent_t*/, stream /*unsigned int*/);

0 commit comments

Comments
 (0)