Skip to content

Conversation

sidamd
Copy link

@sidamd sidamd commented Aug 22, 2025

The following warning is emitted incorrectly. MI300X is gfx942.

Warning: Unsupported ROCm GPU architecture: AMD Instinct MI300X
Currently only gfx942 is supported. Compiling only for gfx942.

Use gcnArchName to extract gpu_arch value to suppress the above warning.

Here is an example output of get_device_properties() that shows the gcnArchName field value on MI300X platform.

>>> torch.cuda.get_device_properties(0)
_CudaDeviceProperties(name='AMD Instinct MI300X', major=9, minor=4, gcnArchName='gfx942:sramecc+:xnack-', total_memory=196592MB, multi_processor_count=304, uuid=65303434-3830-3136-3839-323537666234, pci_bus_id=5, pci_device_id=0, pci_domain_id=0, L2_cache_size=4MB)

With the above changes, the warning is not emitted during build on MI300X.
Used this command to build and test:

python3 -m build --wheel --no-isolation .

Copy link

pytorch-bot bot commented Aug 22, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2853

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copy link

meta-cla bot commented Aug 22, 2025

Hi @sidamd!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

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.

1 participant