|
hipError_t | hipImportExternalSemaphore (hipExternalSemaphore_t *extSem_out, const hipExternalSemaphoreHandleDesc *semHandleDesc) |
| Imports an external semaphore. More...
|
|
hipError_t | hipSignalExternalSemaphoresAsync (const hipExternalSemaphore_t *extSemArray, const hipExternalSemaphoreSignalParams *paramsArray, unsigned int numExtSems, hipStream_t stream) |
| Signals a set of external semaphore objects. More...
|
|
hipError_t | hipWaitExternalSemaphoresAsync (const hipExternalSemaphore_t *extSemArray, const hipExternalSemaphoreWaitParams *paramsArray, unsigned int numExtSems, hipStream_t stream) |
| Waits on a set of external semaphore objects. More...
|
|
hipError_t | hipDestroyExternalSemaphore (hipExternalSemaphore_t extSem) |
| Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed. More...
|
|
hipError_t | hipImportExternalMemory (hipExternalMemory_t *extMem_out, const hipExternalMemoryHandleDesc *memHandleDesc) |
| Imports an external memory object. More...
|
|
hipError_t | hipExternalMemoryGetMappedBuffer (void **devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc *bufferDesc) |
| Maps a buffer onto an imported memory object. More...
|
|
hipError_t | hipDestroyExternalMemory (hipExternalMemory_t extMem) |
| Destroys an external memory object. More...
|
|
This section describes the external resource interoperability functions of HIP runtime API.
◆ hipDestroyExternalMemory()
hipError_t hipDestroyExternalMemory |
( |
hipExternalMemory_t |
extMem | ) |
|
◆ hipDestroyExternalSemaphore()
hipError_t hipDestroyExternalSemaphore |
( |
hipExternalSemaphore_t |
extSem | ) |
|
Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed.
- Parameters
-
[in] | extSem | handle to an external memory object |
- Returns
- hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue
- See also
◆ hipExternalMemoryGetMappedBuffer()
hipError_t hipExternalMemoryGetMappedBuffer |
( |
void ** |
devPtr, |
|
|
hipExternalMemory_t |
extMem, |
|
|
const hipExternalMemoryBufferDesc * |
bufferDesc |
|
) |
| |
◆ hipImportExternalMemory()
◆ hipImportExternalSemaphore()
◆ hipSignalExternalSemaphoresAsync()
hipError_t hipSignalExternalSemaphoresAsync |
( |
const hipExternalSemaphore_t * |
extSemArray, |
|
|
const hipExternalSemaphoreSignalParams * |
paramsArray, |
|
|
unsigned int |
numExtSems, |
|
|
hipStream_t |
stream |
|
) |
| |
Signals a set of external semaphore objects.
- Parameters
-
[in] | extSem_out | External semaphores to be waited on |
[in] | paramsArray | Array of semaphore parameters |
[in] | numExtSems | Number of semaphores to wait on |
[in] | stream | Stream to enqueue the wait operations in |
- Returns
- hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue
- See also
◆ hipWaitExternalSemaphoresAsync()
hipError_t hipWaitExternalSemaphoresAsync |
( |
const hipExternalSemaphore_t * |
extSemArray, |
|
|
const hipExternalSemaphoreWaitParams * |
paramsArray, |
|
|
unsigned int |
numExtSems, |
|
|
hipStream_t |
stream |
|
) |
| |
Waits on a set of external semaphore objects.
- Parameters
-
[in] | extSem_out | External semaphores to be waited on |
[in] | paramsArray | Array of semaphore parameters |
[in] | numExtSems | Number of semaphores to wait on |
[in] | stream | Stream to enqueue the wait operations in |
- Returns
- hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue
- See also