diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b9e15ab06..3f6d3a1a7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -196,6 +196,9 @@ add_library(Omega_h::omega_h ALIAS omega_h) set_property(TARGET omega_h PROPERTY CXX_STANDARD "17") set_property(TARGET omega_h PROPERTY CXX_STANDARD_REQUIRED ON) set_property(TARGET omega_h PROPERTY CXX_EXTENSIONS OFF) +if (Omega_h_USE_CUDA) + set_property(TARGET omega_h PROPERTY CUDA_ARCHITECTURES ${Omega_h_CUDA_ARCH}) +endif() bob_library_includes(omega_h) diff --git a/src/Omega_h_array.hpp b/src/Omega_h_array.hpp index 30a94407e..e688a41af 100644 --- a/src/Omega_h_array.hpp +++ b/src/Omega_h_array.hpp @@ -10,6 +10,7 @@ #include #else #include +#include //shared_ptr #include #endif @@ -136,7 +137,7 @@ class HostRead { #if defined(OMEGA_H_USE_KOKKOS) typename Kokkos::View mirror_; #elif defined(OMEGA_H_USE_CUDA) - std::shared_ptr mirror_; + std::shared_ptr mirror_; #endif public: using value_type = T; @@ -155,7 +156,7 @@ class HostWrite { #ifdef OMEGA_H_USE_KOKKOS typename View::HostMirror mirror_; #elif defined(OMEGA_H_USE_CUDA) - std::shared_ptr mirror_; + std::shared_ptr mirror_; #endif public: using value_type = T;