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

Compilation fails when profiling disabled and CUDA enabled #3001

Closed
j8asic opened this issue May 2, 2020 · 0 comments
Closed

Compilation fails when profiling disabled and CUDA enabled #3001

j8asic opened this issue May 2, 2020 · 0 comments
Assignees
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)

Comments

@j8asic
Copy link
Contributor

j8asic commented May 2, 2020

Both master and develop branches fail to compile if Kokkos_ENABLE_PROFILING is disabled. This happens when compiling the CUDA backend, using Clang compiler. Error DeviceTypeTraits is not declared, I guess due to not including Kokkos_Profiling_Interface.hpp that declares it...

In file included from /home/josip/Code/kokkos/core/src/Cuda/Kokkos_Cuda_Locks.cpp:51:
/home/josip/Code/kokkos/core/src/Kokkos_Cuda.hpp:279:8: error: explicit specialization of undeclared template struct 'DeviceTypeTraits'
struct DeviceTypeTraits<Cuda> {
       ^               ~~~~~~
/home/josip/Code/kokkos/core/src/Kokkos_Cuda.hpp:281:20: error: unknown type name 'DeviceType'
  static constexpr DeviceType id = DeviceType::Cuda;
@dalg24 dalg24 self-assigned this May 4, 2020
@dalg24 dalg24 added the Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) label May 4, 2020
@dalg24 dalg24 closed this as completed May 4, 2020
@crtrott crtrott reopened this May 4, 2020
@crtrott crtrott closed this as completed May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Projects
None yet
Development

No branches or pull requests

3 participants