Skip to content

Commit

Permalink
Add cuFuncSetAttribute test
Browse files Browse the repository at this point in the history
  • Loading branch information
the-slow-one authored Jun 4, 2024
1 parent 7c3cd1d commit a5c06f4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions clang/test/dpct/kernel-function-unsupported-cuda-8.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// UNSUPPORTED: cuda-8.0
// UNSUPPORTED: v8.0
// RUN: dpct -out-root %T/kernel-function-unsupported-cuda-8 %s --cuda-include-path="%cuda-path/include"
// RUN: FileCheck --match-full-lines --input-file %T/kernel-function-unsupported-cuda-8/kernel-function-unsupported-cuda-8.dp.cpp %s
// RUN: %if build_lit %{icpx -c -fsycl %T/kernel-function-unsupported-cuda-8/kernel-function-unsupported-cuda-8.dp.cpp -o %T/kernel-function-unsupported-cuda-8/kernel-function-unsupported-cuda-8.dp.o %}

void foo(void) {
CUfunction f;
// CHECK: /*
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuFuncSetAttribute was removed because SYCL currently does not support setting kernel function attributes
// CHECK-NEXT: */
cuFuncSetAttribute(f, CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT, 1024);
}

0 comments on commit a5c06f4

Please sign in to comment.