Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__AMDGCN_WAVEFRONT_SIZE__ and __AMDGCN_WAVEFRONT_SIZE to be deprecated in future ROCM release #4270

Open
mrowan137 opened this issue Dec 16, 2024 · 4 comments

Comments

@mrowan137
Copy link
Contributor

mrowan137 commented Dec 16, 2024

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

@WeiqunZhang
Copy link
Member

@mrowan137 Thanks for letting us know. I guess we will do the static_assert only when the macros are defined.

@WeiqunZhang
Copy link
Member

@mrowan137 https://rocm.docs.amd.com/projects/rocPRIM/en/latest/reference/intrinsics.html#_CPPv4N7rocprim9warp_sizeEv

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.

@WeiqunZhang
Copy link
Member

Will they become deprecated as well?

@mrowan137
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants