Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22104

Overriding header search order for nvcc

$
0
0

I have a CUDA project that uses Thrust. Thrust comes with the CUDA Toolkit but I'd like to use a more recent version I've checked out.

I invoke nvcc with -isystem=/path/to/thrust but the underlying compiler invocation looks like

gcc ... "-I/usr/local/cuda-10.1/bin/../targets/x86_64-linux/include"  -isystem "/path/to/thrust"

Since gcc searches directories from left to right, that means that the Toolkit's Thrust headers are found first.

Can I override this behavior to find my Thrust checkout first without modifying the CUDA Toolkit or writing a compiler wrapper script?


Viewing all articles
Browse latest Browse all 22104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>