In order to use CUFFT callbacks, one of the restrictions is that the code must be compiled with relocatable relocatable device code.
When this condition is not met, bad things happen; silent failures, wrong answers, etc.
I've got my current build working, but I'd like to make this code more robust against mis-compilation in future projects.
Is there any way to detect this inside the compilation unit? e.g. preprocessor flags