Questions tagged [nvcc]

"nvcc" is NVIDIA's LLVM-based C/C++ compiler for targeting GPUs with CUDA.

This tag refers to NVIDIA’s compiler toolchain nvcc for the parallel computing architecture (CUDA). Documentation for nvcc is included with the CUDA Toolkit.

You should ask questions about CUDA here on Stack Overflow, but if you have bugs to report you should discuss them on the CUDA forums or report them via the registered developer portal. You may want to cross-link to any discussion here on Stack Overflow.

688 questions
-1
votes
1 answer

Nvidia 9.2 CUDA toolkit nvcc install error

I am trying to install the CUDA toolkit on Ubuntu 16.04 with sudo apt-get install cuda and keep getting the following error: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the…
negfrequency
  • 1,801
  • 3
  • 18
  • 30
-1
votes
1 answer

Trouble uninstalling CUDA 9.1 and installing 9.0

Config - Intel Core i5-7200U, Intel HD Graphics, NVIDIA GeForce 940MX OS - Ubuntu 18.04 On a fresh installation of ubuntu 18.04, I was following this guide…
Kartik Bhatia
  • 29
  • 1
  • 5
-1
votes
1 answer

Different errors when trying to link cuRAND on Windows

I have a DLL that contains my CUDA code and recent added a pair .cuh/.cu with cuRAND code to be part of the DLL. Because there are a lot of linking problems regarding cuRAND, first I wrote a minimalist piece of code just to see if the thing…
JayY
  • 109
  • 10
-1
votes
1 answer

Compilation errors in a CUDA C project (nvcc compiler)

I am working on a CUDA C project, adding new functionalities step by step. Everything was going fine until I added to the code a particular kernel: the nvcc compiler now gives me 4 errors, all related to the same kernel (the new one). Here are the…
Andrea Crespi
  • 21
  • 1
  • 4
-1
votes
1 answer

Calling a function in an external C file from a cuda file

I have a C code (io.c) which compiles and runs perfectly. I am trying to call a function of the C code (io.c) from a cuda file (PCA.cu): io.c #include #include void Read_header(char filename_header[200], int *num_lines, int…
emartel
  • 49
  • 9
-1
votes
2 answers

nvcc with avx support cannot find gcc builtin intrinsics

This is my first question ;-) I try to use AVX in CUDA application (ccminer) but nvcc shows an error: /usr/local/cuda/bin/nvcc -Xcompiler "-Wall -mavx" -O3 -I . -Xptxas "-abi=no -v" -gencode=arch=compute_50,code=\"sm_50,compute_50\"…
Marcin Badtke
  • 599
  • 5
  • 9
-1
votes
1 answer

Include a static cuda library into a c++ project

I have a templated static CUDA library which I want to include into a common c++ project. When I include the headers of the library the compiler crashes and says It cannot resolve the CUDA-specific symbols. Of course the g++ compiler cannot…
VoodooCode
  • 287
  • 2
  • 15
-1
votes
1 answer

CUDA: Linking a shared library .so using separate files

I'm trying to compile a .so library using nvcc 6.0 from separate .cu files. I managed to compile each file separately using the -rdc=true. When I try to link my libraries using c I get a bunch of errors. I have compiled already from a single…
eaponte
  • 409
  • 5
  • 15
-1
votes
1 answer

error when using CUDPPHandle

I'm working on CUDA as a beginner and am trying to execute a pre written code the compile gives error for every usage of CUDPPHandle... for example void HPGMST() { //Reinitialize the ranking arrays, must be orig but this also works …
soodankit
  • 81
  • 8
-1
votes
1 answer

CUDA NVCC compiler errors

Why when I try to compile a cuda program throws those errors: clang: error: unsupported option '-dumpspecs' and clang: error: no input files? I type on the terminal: nvcc -o hello matrix_product.cu as an internet tutorial showed me but seems not to…
-1
votes
1 answer

Does CUDA compilation rely on presence of graphics card?

Suppose, hypothetically, that I want to test compile, but not run, CUDA code on a machine that has no CUDA capable GPU present. Should I be able to do that with only the CUDA Toolkit installed? Or does NVCC rely on the presence of graphics card…
Matt J
  • 1,127
  • 7
  • 15
-1
votes
1 answer

intermediate code generated by nvcc compiler for CUDA program

I am working on parallel programing with CUDA GPUs. I compiled a CUDA version of a matrix multiplication program with the nvcc compiler. Now I need to look at the intermediate code of the process, so I can understand the parallelization process. How…
-1
votes
1 answer

Cuda error on compiling: identifier "cudamalloc" is undefined

I have a CUDA C code, when I try to compile it, nvcc gives me an error with an undefined identifier error: identifier "cudamalloc" is undefined, identifier "cudamemcpy" is undefined. I'm running Windows 7 with Visual Studio 10 and CUDA Toolkit 4.0 I…
user2828697
  • 9
  • 1
  • 2
-2
votes
1 answer

Using two compiler in one sconscript (nvcc, g++)

How can I use both of the compiler in one sconscript?? Some of the details of the sconscript is shown below: I have a .cu file and with nvcc -c test.cu, I could generate a .o file. How can I import this .o file to the existing sconscript, so that…
-2
votes
1 answer

Thrust code returns different results when compiled with OpenMP backend

I am experiencing on Windows 10 a situation in which the same code, either compiled with CUDA 9.2 backend (using nvcc with cl.exe) or compiled with OpenMP backend (using g++ provided by MinGW), returns different numerical results. The CUDA one is…
1 2 3
45
46