I am trying to cross compile a simple vector add cuda program. It compiles on device directly. but whenever I am trying to compile on host it shows following error. There is some setup error on my host for cross compilation environment which I am not able to identify. Kindly help me with this.
prem@ubuntu:/nfsfromarm/bin/test$ nvcc -target-cpu-arch ARM -m32 -ccbin arm-linux-gnueabihf-cpp-4.8 vectorAdd.cu -o vectorAdd
arm-linux-gnueabihf-cpp-4.8: fatal error: ‘-c’ is not a valid option to the preprocessor