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

ROCm: Merge from rocm-hackathon2 #1636

Closed
chipfreitag opened this issue May 23, 2018 · 2 comments
Closed

ROCm: Merge from rocm-hackathon2 #1636

chipfreitag opened this issue May 23, 2018 · 2 comments
Assignees
Labels
Enhancement Improve existing capability; will potentially require voting
Milestone

Comments

@chipfreitag
Copy link
Contributor

Got MDRange reduce working, will push commits soon.

With my unit_test/standalone builds of the reduction tests, the KOKKOS_IMPL_ROCM_CLANG_WORKAROUND macro is never getting defined, because no ROCm include files are brought in before the range(point_type()...) calls are compiled. This causes the "no matching constructor" errors.

I end up just commenting out the ifdef in Kokkos_Arrray, but this is obviously not acceptable. I haven't found a convenient global way (short of defining at make time) to get Kokkos_ROCm_Config.hpp included so that the macro is defined.

My build command looks like:
make -f /home/chipf/kokkos-kh/core/unit_test/standalone/Makefile KOKKOS_ARCH=SNB,Vega KOKKOS_DEVICES=ROCm CXX=/opt/rocm/hcc/bin/clang++ -j 8

@ibaned
Copy link
Contributor

ibaned commented May 23, 2018

@chipfreitag we've opened a pull request to do this, we'll merge it in after the current release.

@ibaned ibaned added this to the 2018 July milestone May 23, 2018
@crtrott
Copy link
Member

crtrott commented May 23, 2018

We can define this KOKKOS_IMPL_ROCM_CLANG_WORKAROUND in the Makefile.kokkos so its gonna be part of the KokkosCore_config.h which is always included first.

@crtrott crtrott self-assigned this May 26, 2018
@crtrott crtrott added Enhancement Improve existing capability; will potentially require voting InDevelop labels May 26, 2018
@crtrott crtrott added this to Done in ROCm Maturation May 26, 2018
@crtrott crtrott closed this as completed Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improve existing capability; will potentially require voting
Projects
No open projects
Development

No branches or pull requests

3 participants