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

error: cuda_runtime.h: No such file or directory

$
0
0

How can I force gcc to look in /usr/cuda/local/include for cuda_runtime.h?

I'm attempting to compile a CUDA application with a C wrapper. I'm running Ubuntu 10.04.

I've successfully compiled my CUDA application into a .so with the following command:

nvcc -arch=sm_11 -o libtest.so --shared -Xcompiler -fPIC main.cu

When I try and compile my c wrapper file with the following command:

gcc -std=c99 -o main -L. -ltest main.c

I receive the error:

error: cuda_runtime.h: No such file or directory

I've verified that cuda_runtime.h is in fact present in /usr/local/cuda/include


Viewing all articles
Browse latest Browse all 22002

Trending Articles



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