Hello, I’m reasonably new to CUDA and am returning to complete a project that I began a few months ago. The problem I’m having is compiling my project.
The code written a few months ago previously compiled and will run on the given machine (a fresh Ubuntu 18.04 machine). The machine’s GPU is a 1070ti and I believe the drivers are correctly installed however when the code (new code or the previous last version of compiled code) is recompiled the process produces a compile error.
The compile error is itself very hard to read but some portions appear legible - such as:
- undefined reference to `cudaSetupArgument’
- undefined reference to `cudaLaunch’
- In function `cudaError cudaLaunch(char*)’:
I have followed the post install instructions for Ubuntu as listed here
The fresh ubuntu machine has a directory structure for cuda that seems to identify cuda as 11.3 (for example the directory structure appears as /usr/local/cuda-11.3
nvcc --version returns the cuda compilation tools as release 9.1, V9.1.85
The compile failure happens when I link some of my previous .cu files. The error occurs even when the code contained within a linked function is completely commented out and it only happens with some functions or linked files - which is completely baffling.
Thanks in advance for all of your help - I’m totally stuck!!