Skip to content

Commit 3c12c0c

Browse files
authored
Merge pull request #103 from LLNL/faster-compile
open up extra return
2 parents 2f3908a + a579f6f commit 3c12c0c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/camp/resource/cuda.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,10 @@ namespace resources
124124
}
125125
}
126126
::camp::throw_re("invalid pointer detected");
127-
#if defined(__CUDACC__) && defined(__CUDA_ARCH__)
128-
// This return statement exists because nvcc is annoying
127+
// This return statement exists because compilers do not determine the
128+
// above unconditionally throws
129129
// related: https://stackoverflow.com/questions/64523302/cuda-missing-return-statement-at-end-of-non-void-function-in-constexpr-if-fun
130130
return MemoryAccess::Unknown;
131-
#endif
132131
}
133132
public:
134133
Cuda(int group = -1, int dev = 0)

0 commit comments

Comments
 (0)