- removed comment
Code containing CCTK_BUILTIN_UNREACHABLE does not compile with CUDA. In fact, there seems to be problems with calling abort() from CUDA as well. The attached patch allows compilation to proceed, but I suspect it will be hated.
Keyword:
(1) In the long run, CUDA should become its own language, and should stop pretending to be C or C++. In the short run, testing CUDACC is fine.
(2) Isn't CUDA like C++? If so, do you need to change the behaviour of C code?
(3) If asm("trap;") works always, then the macro should be always defined, and not only if C++ supports it.