Skip to content

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

Description

@tob2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions