How to upgrade toolchain in Nsight to GCC 6.4.1?

Apparently the latest JetPack 4.1.1 Developer Preview has an outdated toolchain.

I need to upgrade to GCC 6.4.1 in order to successfully run code on the Jetson Xavier. I’m getting an “Exec Format Error” even though my host architecture and remote architecture is set to aarch64. I compile on the host (Ubuntu 18.04 LTS) and try to run on Jetson Xavier.

I have no clue how to update the toolchain to GCC 6.4.1 in Nsight and to get it to execute my code.

Any help would be greatly appreciated!

-Cuda Education
cudaeducation.com

You can specify the cross compiler(-ccbin) to use with nvcc from the project property page.

Right click on the project -> Properties -> Build -> Settings -> Tool Settings -> NVCC Compiler -> Build Stages