pycuda icon indicating copy to clipboard operation
pycuda copied to clipboard

SourceModule: option to ignore #include's

Open lets-all-be-stupid-forever opened this issue 8 years ago • 1 comments

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.

inducer avatar Sep 20 '16 04:09 inducer