Open torrance opened 1 year ago
@torrance Apologies for the lack of response. Can you please test with latest ROCm 6.1.0 (HIP 6.1)? If resolved, please close ticket. Thanks!
Hi @torrance,
Good news, an update was made in ROCm 5.7 that ensures consistency between the spt API declarations and the non-spt API declarations, as seen here: SWDEV-407692.
Please update to the latest version of ROCm (6.2.2) and you should see the changes requested, thanks!
I'm trying to use
hipMemcpyFromSymbol()
with the hipcc option-fgpu-default-stream=per-thread
enabled, all as part of setting hipFFT callbacksThe API is defined as:
And in my own code I call it as:
This works just fine with
-fgpu-default-stream=legacy
, and allows me to set callbacks for hipFFT. My tests pass.However, when compiled with hipcc and
-fgpu-default-stream=per-thread
, the optional parameters are no longer defined, as per:https://github.com/ROCm-Developer-Tools/hipamd/blob/4209792929ddf54ba9530813b7879cfdee42df14/include/hip/amd_detail/amd_hip_runtime_pt_api.h#L96-L97
Fine, ok, I'll call it with optional parameters specified:
But now I get the error:
It no longer likes the type returned by
HIP_SYMBOL
anymore, despite this being OK with the legacy stream API. Let me take the address of the HIP_SYMBOL:Now this compiles and works with
-fgpu-default-stream=per-thread
with my tests passing. But the same call now results in failing tests with-fgpu-default-stream=legacy
.My expectation is that HIP will expose a stable API irrespective of the default stream option.