We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b442bf3 + 0cbabe8 commit 9c8b738Copy full SHA for 9c8b738
include/camp/resource/cuda.hpp
@@ -124,6 +124,11 @@ namespace resources
124
}
125
126
::camp::throw_re("invalid pointer detected");
127
+ #if defined(__CUDACC__) && defined(__CUDA_ARCH__)
128
+ // This return statement exists because nvcc is annoying
129
+ // related: https://stackoverflow.com/questions/64523302/cuda-missing-return-statement-at-end-of-non-void-function-in-constexpr-if-fun
130
+ return MemoryAccess::Unknown;
131
+ #endif
132
133
public:
134
Cuda(int group = -1, int dev = 0)
0 commit comments