If the user mistakenly attempts to compile kernel code for the host, an unclear LLVM error is printed:
LLVM ERROR: Cannot select: intrinsic %llvm.nvvm.read.ptx.sreg.nctaid.x
error: Could not compile `chapter-1-kernel`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Perhaps there is some way to detect this and display a better error message.
If the user mistakenly attempts to compile kernel code for the host, an unclear LLVM error is printed:
Perhaps there is some way to detect this and display a better error message.