Skip to content

Add AMDGCN option similar to cuda-compute-capabilities #4860

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Thyre
Copy link
Contributor

@Thyre Thyre commented Apr 25, 2025

Summary

This PR aims to implement a similar option to cuda-compute-capabilities (and related options) for AMD GPUs.
The option can then replace the manual handling done in some EasyBlocks, e.g. Clang & LLVM, allowing to enable (some) GPU builds without the need to alter the EasyConfig.

Most of the handling was copied from CUDA, while some options were skipped as they don't make much sense, e.g. cuda_cc_space_sep_no_period.

The used regex should support all GPU architectures starting from gfx600, including the more recent generic targets.
Actual compiler support then needs to be present in the compiler consuming these architectures. Both GCC and LLVM accept the same naming, i.e. gfx[...], including generic targets.


Missing features compared to CUDA

  • cuda_cache_dir option is missing. I haven't found something similar for HIP yet, but may simply have missed it
  • "int only" options are missing, though hard to provide with generic targets and targets like gfx90a
    • Maybe a target without gfx?

More to be determined.

Known issues

  • The regex for generic targets is not perfect, allowing e.g. gfx10--generic to pass, even though it is not allowed.

Resolves #4829

@Thyre Thyre force-pushed the support-passing-amdgcn branch from 958ad0a to bff1bfb Compare April 25, 2025 21:39
Signed-off-by: Jan Andre Reuter <jan@zyten.de>
@Thyre Thyre force-pushed the support-passing-amdgcn branch from bff1bfb to 0e7aaf3 Compare April 25, 2025 22:55
@Thyre Thyre changed the title Add AMDGCN options similar to cuda-compute-capabilities Add AMDGCN option similar to cuda-compute-capabilities Apr 25, 2025
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.

Feature Request: Introduce cuda_compute_capabilities (and related) options for AMD GPU architectures
1 participant