Skip to content

Conversation

@amd-sriram
Copy link
Collaborator

@amd-sriram amd-sriram commented Jul 9, 2025

In ROCm 7.0, the warpSize variable is no longer constexpr. This commit replaces the variable use with the correct values based on the architecture we're running on.

Fixes : https://ontrack-internal.amd.com/browse/SWDEV-541770

Tested with Docker :
registry-sc-harbor.amd.com/framework/compute-rocm-dkms-no-npi-hipclang:16381_ubuntu24.04_py3.12_pytorch_lw_release-2.6_803962f1

Updated /opt/rocm-7.0.0/include/rocrand/rocrand_mtgp32.h with the changes in the PR https://github.com/ROCm/rocm-libraries/pull/507/files

Checked the following UTs, and these pass:

python apex/contrib/test/groupbn/test_groupbn.py 
python apex/contrib/test/groupbn/test_groupbn_channel_last.py 

In ROCm 7.0, the warpSize variable is no longer constexpr.
This commit replaces the variable use with the correct values
based on the architecture we're running on.
@amd-sriram amd-sriram self-assigned this Jul 9, 2025
@amd-sriram amd-sriram merged commit 14c8025 into release/1.6.0 Jul 9, 2025
@amd-sriram amd-sriram deleted the fix_warpSize_1.6.0 branch July 9, 2025 09:12
pruthvistony pushed a commit to ROCm/pytorch that referenced this pull request Jul 9, 2025
updated Apex commit 
[release/1.6.0] Do not use warpSize as a constexpr in
nhwc_batch_norm_kernel.h - ROCm/apex#231

Fixes: https://ontrack-internal.amd.com/browse/SWDEV-541770
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

Successfully merging this pull request may close these issues.

3 participants