-
Notifications
You must be signed in to change notification settings - Fork 5
Description
CUDA 11 adds new optimisation flags we could try:
-
--dlink-time-opt/-dlto
Perform link-time optimization of device code.
Link-time optimization must be specified at both compile and link time; at compile time it stores high-level intermediate code, then at link time it links together and optimizes the intermediate code.If that intermediate is not found at link time then nothing happens.
Intermediate code is also stored at compile time with the--gpu-code=lto_NNtarget. The options-dlto -arch=sm_NNwill add alto_NN target; if you want to only add alto_NNtarget and not thecompute_NNthat-arch=sm_NNusually generates, use-arch=lto_NN. -
--extra-device-vectorization
This option enables more aggressive device code vectorization.
CUDA also has since this a while, which I'm not sure we ever tried (nor what it is supposed to do):
--extensible-whole-program/-ewp
Do extensible whole program compilation of device code.