[HIP][HIPIFY] Add some missing flags for cooperative launch and occupancy APIs

[ROCm/clr commit: 6db9b782be]
This commit is contained in:
Aryan Salmanpour
2020-01-30 15:05:53 -05:00
parent 7f98f77350
commit 2733df36b5
9 changed files with 39 additions and 8 deletions
@@ -447,6 +447,7 @@
| 717 |*`CUDA_ERROR_INVALID_ADDRESS_SPACE`* | |
| 718 |*`CUDA_ERROR_INVALID_PC`* | |
| 719 |*`CUDA_ERROR_LAUNCH_FAILED`* |*`hipErrorLaunchFailure`* |
| 720 |*`CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE`* |*`hipErrorCooperativeLaunchTooLarge`* |
| 800 |*`CUDA_ERROR_NOT_PERMITTED`* | |
| 801 |*`CUDA_ERROR_NOT_SUPPORTED`* |*`hipErrorNotSupported`* |
| 802 |*`CUDA_ERROR_SYSTEM_NOT_READY`* | | 10.0 |
@@ -1063,8 +1064,8 @@
| `cuFuncSetSharedMemConfig` | |
| `cuLaunchKernel` | `hipModuleLaunchKernel` |
| `cuLaunchHostFunc` | | 10.0 |
| `cuLaunchCooperativeKernel` | | 9.0 |
| `cuLaunchCooperativeKernelMultiDevice` | | 9.0 |
| `cuLaunchCooperativeKernel` | `hipLaunchCooperativeKernel` | 9.0 |
| `cuLaunchCooperativeKernelMultiDevice` | `hipLaunchCooperativeKernelMultiDevice` | 9.0 |
## **19. Execution Control [DEPRECATED]**
@@ -800,7 +800,7 @@
| 717 |*`cudaErrorInvalidAddressSpace`* | | |
| 718 |*`cudaErrorInvalidPc`* | | |
| 719 |*`cudaErrorLaunchFailure`* | |*`hipErrorLaunchFailure`* |
| 720 |*`cudaErrorCooperativeLaunchTooLarge`* | 9.0 | |
| 720 |*`cudaErrorCooperativeLaunchTooLarge`* | 9.0 |*`hipErrorCooperativeLaunchTooLarge`* |
| 800 |*`cudaErrorNotPermitted`* | | |
| 801 |*`cudaErrorNotSupported`* | |*`hipErrorNotSupported`* |
| 802 |*`cudaErrorSystemNotReady`* | 10.0 | |
@@ -1045,7 +1045,7 @@
| define |`cudaMemAttachGlobal` | |`hipMemAttachGlobal` |
| define |`cudaMemAttachHost` | |`hipMemAttachHost` |
| define |`cudaMemAttachSingle` | | |
| define |`cudaOccupancyDefault` | | |
| define |`cudaOccupancyDefault` | |`hipOccupancyDefault` |
| define |`cudaOccupancyDisableCachingOverride` | | |
| define |`cudaPeerAccessDefault` | | |
| define |`cudaStreamDefault` | |`hipStreamDefault` |