[HIPIFY] Sync more CUDA Driver API functions.
+ 4.14. Event Management + 4.15. Execution Control ToDo: 4.16 - 4.31 modules of CUDA Driver API.
Этот коммит содержится в:
@@ -583,12 +583,21 @@
|
||||
|
||||
| **CUDA** | **HIP** | **CUDA description** |
|
||||
|-----------------------------------------------------------|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
|
||||
|
||||
| `cuEventCreate` | `hipEventCreate` | Creates an event. |
|
||||
| `cuEventDestroy` | `hipEventDestroy` | Destroys an event. |
|
||||
| `cuEventElapsedTime` | `hipEventElapsedTime` | Computes the elapsed time between two events. |
|
||||
| `cuEventQuery` | `hipEventQuery` | Queries an event's status. |
|
||||
| `cuEventRecord` | `hipEventRecord` | Records an event. |
|
||||
| `cuEventSynchronize` | `hipEventSynchronize` | Waits for an event to complete. |
|
||||
|
||||
## **15. Execution Control**
|
||||
|
||||
| **CUDA** | **HIP** | **CUDA description** |
|
||||
|-----------------------------------------------------------|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `cuFuncGetAttribute` | | Returns information about a function. |
|
||||
| `cuFuncSetCacheConfig` | `hipFuncSetCacheConfig` | Sets the preferred cache configuration for a device function. |
|
||||
| `cuFuncSetSharedMemConfig` | | Sets the shared memory configuration for a device function. |
|
||||
| `cuLaunchKernel` | `hipModuleLaunchKernel` | Launches a CUDA function. |
|
||||
|
||||
|
||||
## **16. Execution Control [DEPRECATED]**
|
||||
|
||||
@@ -987,6 +987,10 @@ struct cuda2hipMap {
|
||||
cuda2hipRename["cuEventRecord"] = {"hipEventRecord", CONV_EVENT, API_DRIVER};
|
||||
cuda2hipRename["cuEventSynchronize"] = {"hipEventSynchronize", CONV_EVENT, API_DRIVER};
|
||||
|
||||
// Execution Control
|
||||
cuda2hipRename["cuFuncGetAttribute"] = {"hipFuncGetAttribute", CONV_MODULE, API_DRIVER, HIP_UNSUPPORTED};
|
||||
cuda2hipRename["cuFuncSetCacheConfig"] = {"hipFuncSetCacheConfig", CONV_MODULE, API_DRIVER};
|
||||
cuda2hipRename["cuFuncSetSharedMemConfig"] = {"hipFuncSetSharedMemConfig", CONV_MODULE, API_DRIVER, HIP_UNSUPPORTED};
|
||||
cuda2hipRename["cuLaunchKernel"] = {"hipModuleLaunchKernel", CONV_MODULE, API_DRIVER};
|
||||
|
||||
// Streams
|
||||
|
||||
Ссылка в новой задаче
Block a user