diff --git a/stim/math/vec3.h b/stim/math/vec3.h index 41c2f07..8674a3a 100644 --- a/stim/math/vec3.h +++ b/stim/math/vec3.h @@ -5,6 +5,10 @@ #include #include +#ifndef __CUDACC__ +#include +#endif + namespace stim{ @@ -243,9 +247,9 @@ public: return false; } -//#ifndef __CUDA_ARCH__ +#ifndef __CUDACC__ /// Outputs the vector as a string -CUDA_UNCALLABLE std::string str() const{ +std::string str() const{ std::stringstream ss; const size_t N = 3; @@ -261,7 +265,7 @@ CUDA_UNCALLABLE std::string str() const{ return ss.str(); } -//#endif +#endif size_t size(){ return 3; } -- libgit2 0.21.4