Closed ptheywood closed 2 years ago
From discussions on the Bede slack, the following additions to the nvcc documentation may be useful:
--forward-unknown-to-host-compiler
-march=native
--compiler-optinos
-Xcompiler
--compiler-bindir
-ccbin
-lineinfo
-G
From discussions on the Bede slack, the following additions to the nvcc documentation may be useful:
--forward-unknown-to-host-compiler
to forward unknown compiler args from nvcc to g++/clang (i.e.-march=native
) + the linker version.--compiler-optinos
/-Xcompiler
etc to explicitly provide arguments to separate compilation phases (i.e.-march=native
)--compiler-bindir
/-ccbin
to set the host compiler to something other than the first gcc/g++ on the path.-lineinfo
for improved profiling on optimised builds-G
for device debug (mutually exclusive with-lineinfo
on recent nvcc)