Cannot compile code on remote system

I get this error when I try to compile my code on my remote Ubuntu server :
nvcc fatal : The version (‘90000’) of the host compiler (‘Apple clang’) is not supported
make: *** [main.o] Error 1

I am on macOS running Nvidia Nsight.

I didn’t install the CUDA Driver as I don’t have a CUDA-enabled GPU. I installed everything else.

Can anybody help me with this issue? Thanks!