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

Add support for AMD target feature specifications in --offload-arch #7001

Open
rbberger opened this issue May 9, 2024 · 0 comments
Open

Comments

@rbberger
Copy link
Contributor

rbberger commented May 9, 2024

Using address sanitizer for ROCm seems to require to explicitly set xnack+ in the --offload-arch flag during compilation so that the necessary instrumentation is generated.

Explicitly use xnack+ in the offload architecture option. For example, --offload-arch=gfx90a:xnack+
Other architectures are allowed, but their device code will not be instrumented and a warning will be emitted.

Currently Kokkos doesn't provide a mechanism to manipulate that flag. One workaround is enabling CMake language support and taking control of that flag via CMAKE_HIP_ARCHITECTURES. However, the default CMake setup in Kokkos only lets you set architectures via the Kokkos_ARCH_AMD_<arch> Boolean options.

One proposal is to add an optional Kokkos_ARCH_AMD_TARGET_FEATURES CMake option that gets appended when set. An alternative so to provide an override to replace the entire --offload-arch=foo command-line option.

See also:

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

No branches or pull requests

2 participants