We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f3908a + a579f6f commit 3c12c0cCopy full SHA for 3c12c0c
include/camp/resource/cuda.hpp
@@ -124,11 +124,10 @@ 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
+ // This return statement exists because compilers do not determine the
+ // above unconditionally throws
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