Skip to content

Commit 21d03b9

Browse files
committed
Address review comments
Signed-off-by: chenwei.sun <chenwei.sun@intel.com>
1 parent 073c79f commit 21d03b9

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

clang/examples/DPCT/Runtime/cudaCreateSurfaceObject.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void test() {
77
cudaResourceDesc resDesc;
88
// clang-format off
99
// Start
10-
cudaCreateSurfaceObject(&surf /*cudaSurfaceObject_t* */, &resDesc /*const cudaResourceDesc* pResDesc */);
10+
cudaCreateSurfaceObject(&surf /*cudaSurfaceObject_t* */, &resDesc /*const cudaResourceDesc* */);
1111
// End
1212
// clang-format on
1313
}

clang/examples/DPCT/Runtime/cudaGraphAddDependencies.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void test() {
88
cudaGraphNode_t node5[10];
99
// clang-format off
1010
// Start
11-
cudaGraphAddDependencies(graph /*cudaGraph_t*/, node4 /*const cudaGraphNode_t* */, node5 /*const cudaGraphNode_t* */, 10 /*size_t */);
11+
cudaGraphAddDependencies(graph /*cudaGraph_t*/, node4 /*const cudaGraphNode_t* */, node5 /*const cudaGraphNode_t* */, 10 /*size_t*/);
1212
// End
1313
// clang-format on
1414
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
// RUN: dpct --cuda-include-path="%cuda-path/include" --query-api-mapping=cudaCreateSurfaceObject | FileCheck %s -check-prefix=cudaCreateSurfaceObject
7171
// cudaCreateSurfaceObject: CUDA API:
72-
// cudaCreateSurfaceObject-NEXT: cudaCreateSurfaceObject(&surf /*cudaSurfaceObject_t* */, &resDesc /*const cudaResourceDesc* pResDesc */);
72+
// cudaCreateSurfaceObject-NEXT: cudaCreateSurfaceObject(&surf /*cudaSurfaceObject_t* */, &resDesc /*const cudaResourceDesc* */);
7373
// cudaCreateSurfaceObject-NEXT: Is migrated to (with the option --use-experimental-features=bindless_images):
7474
// cudaCreateSurfaceObject-NEXT: surf = dpct::experimental::create_bindless_image(resDesc);
7575

@@ -87,7 +87,7 @@
8787

8888
// RUN: dpct --cuda-include-path="%cuda-path/include" --query-api-mapping=cudaGraphAddDependencies | FileCheck %s -check-prefix=cudaGraphAddDependencies
8989
// cudaGraphAddDependencies: CUDA API:
90-
// cudaGraphAddDependencies-NEXT: cudaGraphAddDependencies(graph /*cudaGraph_t*/, node4 /*const cudaGraphNode_t* */, node5 /*const cudaGraphNode_t* */, 10 /*size_t */);
90+
// cudaGraphAddDependencies-NEXT: cudaGraphAddDependencies(graph /*cudaGraph_t*/, node4 /*const cudaGraphNode_t* */, node5 /*const cudaGraphNode_t* */, 10 /*size_t*/);
9191
// cudaGraphAddDependencies-NEXT: Is migrated to (with the option --use-experimental-features=graph):
9292
// cudaGraphAddDependencies-NEXT: dpct::experimental::add_dependencies(graph, node4, node5, 10);
9393

0 commit comments

Comments
 (0)