[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.
이 커밋은 다음에 포함됨:
Evgeny Mankov가 2017-06-14 19:55:55 +03:00를 커밋했습니다
1 부모 fd36303c24
커밋 0208fa4e70
2 파일이 변경됨
+50 -26

검색과 일치하는 파일 없음

+20 -2
파일 보기
@@ -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**