[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.


[ROCm/hip commit: b4a39664f0]
此提交包含在:
Evgeny Mankov
2017-06-22 21:53:32 +03:00
父節點 5d44127133
當前提交 c396932615
共有 2 個檔案被更改,包括 14 行新增1 行删除
+10 -1
查看文件
@@ -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]**
+4
查看文件
@@ -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