It'd be nice if we could add a scheduled call to a function, to be executed only at runtime, to a plan. The particular use case I have in mind is using NVTX events and ranges, but now that it occurs to me it seems like something that might be generally useful.
(By the way, while kernel_call says that it defaults to fast_math=False, for some reason whenever I have a C++ error the nvcc command has the -use-fast-math flag set...)
-- Actually, related to that last, it'd be cool if we could require at planning time that our kernel be compiled with particular options. In particular, -std=c++11. I strongly suspect it would cut down on usage errors in that case in particular.
It'd be nice if we could add a scheduled call to a function, to be executed only at runtime, to a plan. The particular use case I have in mind is using NVTX events and ranges, but now that it occurs to me it seems like something that might be generally useful.
(By the way, while
kernel_callsays that it defaults tofast_math=False, for some reason whenever I have a C++ error thenvcccommand has the-use-fast-mathflag set...)-- Actually, related to that last, it'd be cool if we could require at planning time that our kernel be compiled with particular options. In particular,
-std=c++11. I strongly suspect it would cut down on usage errors in that case in particular.