I’m looking to cross-compile a cuda-using project from (host) x86 to (target) aarch64. In my host I have:
- host cudatoolkit toolchain (nvcc);
- aarch64-unknown-linux-gnu (gcc cross-compiler from x86 to aarch64) and the native libraries for aarch64;
- target (aarch64) cudatoolkit libraries.
How can I get host nvcc to cross-compile? In particular, the nvcc tool does not appear to have any options pertaining to cross-compilation (such as
--target) nor an obvious way to specify a cross-compiler gcc to use. Is there something obvious I am missing?