[HIPIFY] Sync HIPIFY with HIP by CUDA Driver API functions.

+ 4.12. Unified Addressing
+ 4.13. Stream Management

ToDo: 4.14 - 4.31 modules of CUDA Driver API.
This commit is contained in:
Evgeny Mankov
2017-06-14 19:55:55 +03:00
vanhempi fd36303c24
commit 0208fa4e70
2 muutettua tiedostoa jossa 50 lisäystä ja 26 poistoa
@@ -553,13 +553,31 @@
| **CUDA** | **HIP** | **CUDA description** |
|-----------------------------------------------------------|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| `cuMemAdvise` | | Advise about the usage of a given memory range. |
| `cuMemPrefetchAsync` | | Prefetches memory to the specified destination device. |
| `cuMemRangeGetAttribute` | | Query an attribute of a given memory range. |
| `cuMemRangeGetAttributes` | | Query attributes of a given memory range. |
| `cuPointerGetAttribute` | | Returns information about a pointer. |
| `cuPointerGetAttributes` | | Returns information about a pointer. |
| `cuPointerSetAttribute` | | Set attributes on a previously allocated memory region. |
## **13. Stream Management**
| **CUDA** | **HIP** | **CUDA description** |
|-----------------------------------------------------------|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| `cuStreamAddCallback` | | Add a callback to a compute stream. |
| `cuStreamAttachMemAsync` | | Attach memory to a stream asynchronously. |
| `cuStreamCreate` | | Create a stream. |
| `cuStreamCreateWithPriority` | | Create a stream with the given priority. |
| `cuStreamDestroy` | `hipStreamDestroy` | Destroys a stream. |
| `cuStreamGetFlags` | `hipStreamGetFlags` | Query the flags of a given stream. |
| `cuStreamGetPriority` | `hipStreamGetPriority` | Query the priority of a given stream. |
| `cuStreamQuery` | `hipStreamQuery` | Determine status of a compute stream. |
| `cuStreamSynchronize` | `hipStreamSynchronize` | Wait until a stream's tasks are completed. |
| `cuStreamWaitEvent` | `hipStreamWaitEvent` | Make a compute stream wait on an event. |
| `cuStreamBatchMemOp` | | Batch operations to synchronize the stream via memory operations. |
| `cuStreamWaitValue32` | | Wait on a memory location. |
| `cuStreamWriteValue32` | | Write a value to memory. |
## **14. Event Management**