pycuda
pycuda copied to clipboard
SourceModule: option to ignore #include's
6 Source Modules containing the line #include "float.h" introduced a 1.5 seconds overhead due to a preprocess_source function in compiler.py . Supressing that line removed the overhead.
Can we introduce an option to avoid calling nvcc preprocessor when you have #includes ?
I can see the reasoning, and I'd likely take the patch if you make one. Not sure I would want that option documented just yet, since it's obviously inherently dangerous.