Skip to content

Commit

Permalink
Merge pull request #103 from LLNL/faster-compile
Browse files Browse the repository at this point in the history
open up extra return
  • Loading branch information
trws authored Feb 25, 2022
2 parents 2f3908a + a579f6f commit 3c12c0c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/camp/resource/cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,10 @@ namespace resources
}
}
::camp::throw_re("invalid pointer detected");
#if defined(__CUDACC__) && defined(__CUDA_ARCH__)
// This return statement exists because nvcc is annoying
// This return statement exists because compilers do not determine the
// above unconditionally throws
// related: https://stackoverflow.com/questions/64523302/cuda-missing-return-statement-at-end-of-non-void-function-in-constexpr-if-fun
return MemoryAccess::Unknown;
#endif
}
public:
Cuda(int group = -1, int dev = 0)
Expand Down

0 comments on commit 3c12c0c

Please sign in to comment.