You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that we can use __device__ inline constexpr unsigned int rocprim::device_warp_size() at compile time on device and __host__ inline hipError_t rocprim::host_warp_size(const hipStream_t stream, unsigned int &warp_size) on host at runtime.
Yes, those too will become deprecated. It remains to be seen whether they're replaced with something, but for the time being it may be safest to assume that any workaround based on a ROCm library would also be deprecated.
As an FYI, the macros
__AMDGCN_WAVEFRONT_SIZE__
and__AMDGCN_WAVEFRONT_SIZE
are planned to be deprecated in a future release of ROCm (mentioned in ROCm 6.3 release notes). I am not aware of any suitable way for applications to detect the wavefront size at compile time, so for the time being there may be no better alternative than the current hardcoding.(This check will become problematic at some point: https://github.com/AMReX-Codes/amrex/blob/b3f67385e62f387b548389222840486c0fffca57/Src/Base/AMReX_GpuDevice.cpp#L67C1-L73C7)
@WeiqunZhang
The text was updated successfully, but these errors were encountered: