cuda - nvcc fatal: A single input file is required for a non-link phase when an outputfile is specified -


i'm getting problem nsight eclipse. installed cuda toolkit 5.0 have project uses several c files , 1 cuda file.

i read problem arises when use c files along cuda files in nsight changed files .cu , .cuh extensions in project. likewise said problem comes having path files black spaces made sure it's not case.

the error arises when tries compiling first file calcular.cu

this compilation output

make  building file: ../calcular.cu invoking: nvcc compiler nvcc -i/usr/include/imagemagick -g -g -o0 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_12,code=sm_12 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_20,code=sm_21 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -odir "" -m -o "calcular.d" "../calcular.cu" nvcc –xcompiler –fopenmp --compile -g -i/usr/include/imagemagick -o0 -g -gencode arch=compute_11,code=compute_11 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_12,code=compute_12 -gencode arch=compute_12,code=sm_12 -gencode arch=compute_13,code=compute_13 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=compute_20 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_20,code=sm_21 -gencode arch=compute_30,code=compute_30 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=compute_35 -gencode arch=compute_35,code=sm_35  -x cu -o  "calcular.o" "../calcular.cu" nvcc fatal   : single input file required non-link phase when outputfile specified make: *** [calcular.o] error 255 

this compile options

–xcompiler –fopenmp -i/usr/include/imagemagick -g -g -o0 

the compilation gives no other errors within files. files needs compile calcular.cu, calcular.cuh, preprocesamiento.cu, preprocesamiento.cuh, principal.cu, principal.cuh.

do knows how fix this? thanks

the dashes have here:

–xcompiler –fopenmp 

are not right kind of dashes. if closely @ question posting, see different character correct 1 precedes this:

-i/usr/include/imagemagick 

for example.

you need replace dashes same kind of dash used in front of include switch. if manually entered compiler options, need fix characters.

this dash:

is not correct.

use dash:

- 

instead.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -