hipfort icon indicating copy to clipboard operation
hipfort copied to clipboard

[Feature]: hipStreamGetDevice – not implemented in hipfort, but exists for C/C++

Open tob2 opened this issue 8 months ago • 1 comments

Suggestion Description

For C, the hipStreamGetDevice exists, but not for Fortran. — Expected: It can also be access from Fortran:

https://github.com/ROCm/hip/blob/cbfec76ea8354ba67840a47972942eec1c86777f/include/hip/hip_runtime_api.h#L2770-L2780

/**
 * @brief Get the device assocaited with the stream
 *
 * @param[in] stream stream to be queried
 * @param[out] device device associated with the stream
 * @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorContextIsDestroyed, #hipErrorInvalidHandle,
 * #hipErrorNotInitialized, #hipErrorDeinitialized, #hipErrorInvalidContext
 *
 * @see hipStreamCreate, hipStreamDestroy, hipDeviceGetStreamPriorityRange
 */
hipError_t hipStreamGetDevice(hipStream_t stream, hipDevice_t* device);

Operating System

No response

GPU

No response

ROCm Component

No response

tob2 avatar Apr 17 '25 09:04 tob2

The generalized version of this issue is that the HIP Runtime hipfort bindings need to be regenerated for ROCm 6.4.

cgmb avatar Apr 29 '25 17:04 cgmb