[HIPIFY] CUDA 10.2 (functions only)

+ Both Driver API and RT API are supported and synced with each other
+ Update *.md docs and hipify-perl accordingly
+ Add new conversion type "virtual_memory", introduced in Dirver API
このコミットが含まれているのは:
Evgeny Mankov
2019-12-04 18:37:31 +03:00
コミット ec9b6a95a3
7個のファイルの変更140行の追加74行の削除
+34 -16
ファイルの表示
@@ -829,6 +829,7 @@
| `cuDeviceGetAttribute` | `hipDeviceGetAttribute` |
| `cuDeviceGetCount` | `hipGetDeviceCount` |
| `cuDeviceGetName` | `hipDeviceGetName` |
| `cuDeviceGetNvSciSyncAttributes` | | 10.2 |
| `cuDeviceTotalMem` | `hipDeviceTotalMem` |
| `cuDeviceGetLuid` | | 10.0 |
| `cuDeviceGetUuid` | | 9.2 |
@@ -967,7 +968,25 @@
| `cuMipmappedArrayDestroy` | |
| `cuMipmappedArrayGetLevel` | |
## **12. Unified Addressing**
## **12. Virtual Memory Management**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
| `cuMemAddressFree` | | 10.2 |
| `cuMemAddressReserve` | | 10.2 |
| `cuMemCreate` | | 10.2 |
| `cuMemExportToShareableHandle` | | 10.2 |
| `cuMemGetAccess` | | 10.2 |
| `cuMemGetAllocationGranularity` | | 10.2 |
| `cuMemGetAllocationPropertiesFromHandle` | | 10.2 |
| `cuMemImportFromShareableHandle` | | 10.2 |
| `cuMemMap` | | 10.2 |
| `cuMemRelease` | | 10.2 |
| `cuMemSetAccess` | | 10.2 |
| `cuMemUnmap` | | 10.2 |
## **13. Unified Addressing**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -979,7 +998,7 @@
| `cuPointerGetAttributes` | |
| `cuPointerSetAttribute` | |
## **13. Stream Management**
## **14. Stream Management**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -1000,7 +1019,7 @@
| `cuStreamIsCapturing` | | 10.0 |
| `cuThreadExchangeStreamCaptureMode` | | 10.1 |
## **14. Event Management**
## **15. Event Management**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|------------------|
@@ -1011,7 +1030,7 @@
| `cuEventRecord` | `hipEventRecord` |
| `cuEventSynchronize` | `hipEventSynchronize` |
## **15. External Resource Interoperability**
## **16. External Resource Interoperability**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -1024,7 +1043,7 @@
| `cuImportExternalSemaphore` | | 10.0 |
| `cuDestroyExternalSemaphore` | | 10.0 |
## **16. Stream Memory Operations**
## **17. Stream Memory Operations**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -1034,7 +1053,7 @@
| `cuStreamWriteValue32` | | 8.0 |
| `cuStreamWriteValue64` | | 9.0 |
## **17. Execution Control**
## **18. Execution Control**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -1047,7 +1066,7 @@
| `cuLaunchCooperativeKernel` | | 9.0 |
| `cuLaunchCooperativeKernelMultiDevice` | | 9.0 |
## **18. Execution Control [DEPRECATED]**
## **19. Execution Control [DEPRECATED]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|------------------|
@@ -1061,7 +1080,7 @@
| `cuParamSetTexRef` | |
| `cuParamSetv` | |
## **19. Graph Management**
## **20. Graph Management**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -1096,9 +1115,13 @@
| `cuGraphInstantiate` | | 10.0 |
| `cuGraphExecDestroy` | | 10.0 |
| `cuGraphExecKernelNodeSetParams` | | 10.1 |
| `cuGraphExecMemcpyNodeSetParams` | | 10.2 |
| `cuGraphExecMemsetNodeSetParams` | | 10.2 |
| `cuGraphExecHostNodeSetParams` | | 10.2 |
| `cuGraphExecUpdate` | | 10.2 |
| `cuGraphDestroy` | | 10.0 |
## **20. Occupancy**
## **21. Occupancy**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|---------------------------------------------------------|------------------|
@@ -1107,7 +1130,7 @@
| `cuOccupancyMaxPotentialBlockSize` |`hipOccupancyMaxPotentialBlockSize` |
| `cuOccupancyMaxPotentialBlockSizeWithFlags` | |
## **21. Texture Reference Management**
## **22. Texture Reference Management [DEPRECATED]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -1136,15 +1159,10 @@
| `cuTexRefSetMipmapLevelBias` | |
| `cuTexRefSetMipmapLevelClamp` | |
| `cuTexRefSetMipmappedArray` | |
## **22. Texture Reference Management [DEPRECATED]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|------------------|
| `cuTexRefCreate` | |
| `cuTexRefDestroy` | |
## **23. Surface Reference Management**
## **23. Surface Reference Management [DEPRECATED]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|------------------|
+21 -12
ファイルの表示
@@ -9,6 +9,7 @@
| `cudaDeviceGetByPCIBusId` | `hipDeviceGetByPCIBusId` |
| `cudaDeviceGetCacheConfig` | `hipDeviceGetCacheConfig` |
| `cudaDeviceGetLimit` | `hipDeviceGetLimit` |
| `cudaDeviceGetNvSciSyncAttributes` | | 10.2 |
| `cudaDeviceGetPCIBusId` | `hipDeviceGetPCIBusId` |
| `cudaDeviceGetSharedMemConfig` | `hipDeviceGetSharedMemConfig` |
| `cudaDeviceGetStreamPriorityRange` | `hipDeviceGetStreamPriorityRange` |
@@ -121,15 +122,15 @@
| `cudaOccupancyMaxActiveBlocksPerMultiprocessor` |`hipOccupancyMaxActiveBlocksPerMultiprocessor` |
| `cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags` |`hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`|
## **9. Execution Control [DEPRECATED since 7.0]**
## **Former 9. Execution Control [DEPRECATED since 7.0, REMOVED since 10.1]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
| `cudaConfigureCall` | `hipConfigureCall` |
| `cudaLaunch` | `hipLaunchByPtr` |
| `cudaSetupArgument` | `hipSetupArgument` | 7.0 - 10.0 |
| `cudaSetupArgument` | `hipSetupArgument` |
## **10. Memory Management**
## **9. Memory Management**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -168,16 +169,11 @@
| `cudaMemcpy3DAsync` | |
| `cudaMemcpy3DPeer` | |
| `cudaMemcpy3DPeerAsync` | |
| `cudaMemcpyArrayToArray` | |
| `cudaMemcpyAsync` | `hipMemcpyAsync` |
| `cudaMemcpyFromArray` | `hipMemcpyFromArray` |
| `cudaMemcpyFromArrayAsync` | |
| `cudaMemcpyFromSymbol` | `hipMemcpyFromSymbol` |
| `cudaMemcpyFromSymbolAsync` | `hipMemcpyFromSymbolAsync` |
| `cudaMemcpyPeer` | `hipMemcpyPeer` |
| `cudaMemcpyPeerAsync` | `hipMemcpyPeerAsync` |
| `cudaMemcpyToArray` | `hipMemcpyToArray` |
| `cudaMemcpyToArrayAsync` | |
| `cudaMemcpyToSymbol` | `hipMemcpyToSymbol` |
| `cudaMemcpyToSymbolAsync` | `hipMemcpyToSymbolAsync` |
| `cudaMemset` | `hipMemset` |
@@ -190,6 +186,16 @@
| `make_cudaPitchedPtr` | `make_hipPitchedPtr` |
| `make_cudaPos` | `make_hipPos` |
## **10. Memory Management [DEPRECATED since 10.1]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
| `cudaMemcpyArrayToArray` | |
| `cudaMemcpyFromArray` | `hipMemcpyFromArray` |
| `cudaMemcpyFromArrayAsync` | |
| `cudaMemcpyToArray` | `hipMemcpyToArray` |
| `cudaMemcpyToArrayAsync` | |
## **11. Unified Addressing**
| **CUDA** | **HIP** |**CUDA version\***|
@@ -329,7 +335,7 @@
| `cudaGraphicsUnmapResources` | |
| `cudaGraphicsUnregisterResource` | |
## **24. Texture Reference Management**
## **24. Texture Reference Management [DEPRECATED]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|----------------------------------|:----------------:|
@@ -343,7 +349,7 @@
| `cudaGetTextureReference` | `hipGetTextureReference` |
| `cudaUnbindTexture` | `hipUnbindTexture` |
## **25. Surface Reference Management**
## **25. Surface Reference Management [DEPRECATED]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------|:----------------:|
@@ -399,6 +405,10 @@
| `cudaGraphHostNodeSetParams` | | 10.0 |
| `cudaGraphInstantiate` | | 10.0 |
| `cudaGraphExecKernelNodeSetParams` | | 10.1 |
| `cudaGraphExecMemcpyNodeSetParams` | | 10.2 |
| `cudaGraphExecMemsetNodeSetParams` | | 10.2 |
| `cudaGraphExecHostNodeSetParams` | | 10.2 |
| `cudaGraphExecUpdate` | | 10.2 |
| `cudaGraphKernelNodeGetParams` | | 10.0 |
| `cudaGraphKernelNodeSetParams` | | 10.0 |
| `cudaGraphLaunch` | | 10.0 |
@@ -412,8 +422,7 @@
| `cudaGraphNodeGetType` | | 10.0 |
| `cudaGraphRemoveDependencies` | | 10.0 |
## **30. C++ API Routines**
*(7.0 contains, 7.5 doesn't)*
## **30. C++ API Routines [DEPRECATED since 7.5]**
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|-------------------------------------------------------|:----------------:|