I had success cross compiling a hello_world.cpp, so the basic setup seems to be cool.
I went on, compiling CUDA-based code. This failed, the reason is that all nvcc-generated object files are x86-64 and not aarch64.
So I set the CMakeVariables CMAKE_CUDA_HOST_COMPILER and CUDA_HOST_COMPILER, both point to the right position in the filesystem and are equivalent to CMAKE_CXX_COMPILER. But this had no effect on nvcc, it continues to use the x86-64 compiler.
How can I set in the CMakeLists.txt file the host compiler to use by nvcc?
I would expect that the nvcc host compiler is by default CMAKE_CXX_COMPILER, where is the right place to configure that?
Dear michael.binz,
As I understand, you want to use CUDA kernels along with Driveworks APIs.
We already have a DW sample with similar requirement (/usr/local/driveworks/samples/src/image/image_capture). Can you please check if you are able to cross compile this sample on your host following the cross compilation instructions in the documentation.
You can add your sample as sub folder in DW sample and make similar changes in CMakelists.txt to cross compile your sample. Please get back to us if you need any further clarifications.
Dear diegodbc,
Do you mean, you getting error when cross compiling image_capture sample?
Just to clarify, CMake 3.5 is prerequisite to cross compile the sample. Please check the “Getting Started” section in DW documentation\NVIDIA_DRIVE_SW_8.0_References\DRIVE_Software\DRIVE AV\baggage\dwx_devguide_getting_started.html)