niessner / Opt

Opt DSL
Other
256 stars 68 forks source link

CUDA 9.0 deprecated non-sync shuffle instructions #136

Open ProfFan opened 6 years ago

ProfFan commented 6 years ago

This PR fixes the following Warning:

ptxas /tmp/tmpxft_000010c5_00000000-5_WarpingSolver.ptx, line 677;
warning : Instruction 'shfl' without '.sync' is deprecated since PTX ISA version 6.0 and
will be discontinued in a future PTX ISA version

Tested on my Mac with LLVM 6.0 and latest Opt/Terra

I did not see performance regressions with the demo example applications.

Best, Fan

Mx7f commented 6 years ago

Thanks! Unfortunately the .sync. operators weren't introduced until after CUDA 7.5 (Opt's currently recommended version). So either we need to detect the CUDA version and switch what code we use, or just wait to merge this until we get pre-built terra binaries compatible with CUDA 9 (https://github.com/zdevito/terra/pull/299#issuecomment-430374672).

ProfFan commented 5 years ago

Bump @Mx7f :)