Skip to content

Commit 93998dd

Browse files
authored
[SYCLomatic][NFC]Add missing driver and runtime API in APINames.inc (#722)
Signed-off-by: Ni, Wenhui <[email protected]>
1 parent c869d2c commit 93998dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/DPCT/APINames.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ ENTRY(cudaIpcOpenMemHandle, cudaIpcOpenMemHandle, true, NO_FLAG, P0, "DPCT1030")
6161
ENTRY(cudaSetDevice, cudaSetDevice, true, NO_FLAG, P0, "DPCT1093")
6262
ENTRY(cudaSetDeviceFlags, cudaSetDeviceFlags, true, NO_FLAG, P0, "DPCT1026/DPCT1027")
6363
ENTRY(cudaSetValidDevices, cudaSetValidDevices, false, NO_FLAG, P4, "comment")
64+
ENTRY(cudaInitDevice, cudaInitDevice, false, NO_FLAG, P4, "comment")
6465

6566
// thread management functions of API
6667
ENTRY(cudaThreadExit, cudaThreadExit, true, NO_FLAG, P0, "Successful")
@@ -91,6 +92,7 @@ ENTRY(cudaStreamIsCapturing, cudaStreamIsCapturing, true, API_CALL_REMOVED, P4,
9192
ENTRY(cudaStreamQuery, cudaStreamQuery, true, API_CALL_REMOVED, P0, "DPCT1026/DPCT1027")
9293
ENTRY(cudaStreamSynchronize, cudaStreamSynchronize, true, NO_FLAG, P0, "Successful")
9394
ENTRY(cudaStreamWaitEvent, cudaStreamWaitEvent, true, API_CALL_UNSUPPORTED, P0, "Successful")
95+
ENTRY(cudaStreamGetId, cudaStreamGetId, false, NO_FLAG, P4, "comment")
9496

9597
// event management functions of runtime API
9698
ENTRY(cudaEventCreate, cudaEventCreate, true, API_CALL_REMOVED, P0, "DPCT1026/DPCT1027")
@@ -352,6 +354,7 @@ ENTRY(cudaGraphNodeGetType, cudaGraphNodeGetType, false, NO_FLAG, P4, "comment")
352354
ENTRY(cudaGraphRemoveDependencies, cudaGraphRemoveDependencies, false, NO_FLAG, P4, "comment")
353355
ENTRY(cudaGetCurrentGraphExec, cudaGetCurrentGraphExec, false, NO_FLAG, P4, "comment")
354356
ENTRY(cudaGraphExecGetFlags, cudaGraphExecGetFlags, false, NO_FLAG, P4, "comment")
357+
ENTRY(cudaGraphInstantiateWithParams, cudaGraphInstantiateWithParams, false, NO_FLAG, P4, "comment")
355358

356359

357360
// C++ high level API functions of runtime API
@@ -1733,6 +1736,8 @@ ENTRY(cuOccupancyMaxPotentialClusterSize, cuOccupancyMaxPotentialClusterSize, fa
17331736
ENTRY(cuTensorMapEncodeIm2col, cuTensorMapEncodeIm2col, false, NO_FLAG, P4, "comment")
17341737
ENTRY(cuTensorMapEncodeTiled, cuTensorMapEncodeTiled, false, NO_FLAG, P4, "comment")
17351738
ENTRY(cuTensorMapReplaceAddress, cuTensorMapReplaceAddress, false, NO_FLAG, P4, "comment")
1739+
ENTRY(cuGraphInstantiateWithParams, cuGraphInstantiateWithParams, false, NO_FLAG, P4, "comment")
1740+
ENTRY(cuStreamGetId, cuStreamGetId, false, NO_FLAG, P4, "comment")
17361741

17371742
ENTRY(cuCabs, cuCabs, true, NO_FLAG, P4, "comment")
17381743
ENTRY(cuCabsf, cuCabsf, true, NO_FLAG, P4, "comment")

0 commit comments

Comments
 (0)