Callback activity APIs#

const char *hipApiName(uint32_t id)#

Returns HIP API name by ID.

Parameters:

id[in] ID of HIP API

Returns:

hipSuccess, hipErrorInvalidValue

const char *hipKernelNameRef(const hipFunction_t f)#

Returns kernel name reference by function name.

Parameters:

f[in] Name of function

Returns:

hipSuccess, hipErrorInvalidValue

const char *hipKernelNameRefByPtr(const void *hostFunction, hipStream_t stream)#

Retrives kernel for a given host pointer, unless stated otherwise.

Parameters:
  • hostFunction[in] Pointer of host function.

  • stream[in] Stream the kernel is executed on.

Returns:

hipSuccess, hipErrorInvalidValue

int hipGetStreamDeviceId(hipStream_t stream)#

Returns device ID on the stream.

Parameters:

stream[in] Stream of device executed on.

Returns:

hipSuccess, hipErrorInvalidValue