Skip to content

Commit 3980bfe

Browse files
[SYCLomatic][Query API Mapping] Added QAM for **4 Driver (Blender) & 23 nvSHMEM APIs** (#2879)
* Added QAM for 4 Driver (Blender) & 23 nvSHMEM APIs
1 parent 56aef6a commit 3980bfe

35 files changed

+490
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
void test(int value, CUdevice srcDevice, CUdevice dstDevice) {
2+
// Start
3+
CUdevice_P2PAttribute attrib;
4+
/* 1 */ cuDeviceGetP2PAttribute(
5+
&value /*int **/, CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED,
6+
srcDevice /*CUdevice*/, dstDevice /*CUdevice*/);
7+
/* 2 */ cuDeviceGetP2PAttribute(
8+
&value /*int **/, CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED,
9+
srcDevice /*CUdevice*/, dstDevice /*CUdevice*/);
10+
// End
11+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
void test(CUdevice device, unsigned int flags, int active) {
2+
// Start
3+
cuDevicePrimaryCtxGetState(device /*CUdevice*/, &flags /*unsigned int **/,
4+
&active /*int **/);
5+
// End
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void test(CUdevice device, unsigned int flags) {
2+
// Start
3+
cuDevicePrimaryCtxSetFlags(device /*CUdevice*/, flags /*unsigned int*/);
4+
// End
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void test(const CUDA_MEMCPY2D *copy2d_desc) {
2+
// Start
3+
cuMemcpy2DUnaligned(copy2d_desc /*const CUDA_MEMCPY2D **/);
4+
// End
5+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <nvshmem.h>
2+
3+
void test(size_t alignment, size_t size) {
4+
// Start
5+
nvshmem_align(alignment /*size_t*/, size /*size_t*/);
6+
// End
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <nvshmem.h>
2+
3+
void test(size_t count, size_t size) {
4+
// Start
5+
nvshmem_calloc(count /*size_t*/, size /*size_t*/);
6+
// End
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <nvshmem.h>
2+
3+
void test() {
4+
// Start
5+
nvshmem_finalize(/*void*/);
6+
// End
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <nvshmem.h>
2+
3+
void test(void *ptr) {
4+
// Start
5+
nvshmem_free(ptr /*void **/);
6+
// End
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <nvshmem.h>
2+
3+
void test(char *name) {
4+
// Start
5+
nvshmem_info_get_name(name /*char **/);
6+
// End
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <nvshmem.h>
2+
3+
void test(int *major, int *minor) {
4+
// Start
5+
nvshmem_info_get_version(major /*int **/, minor /*int **/);
6+
// End
7+
}

0 commit comments

Comments
 (0)