I have a largish, heavily-templated library and small test executable that links to it that I am building with CUDA 9 on Fedora 24 / g++ 6.3.
Both the library and the executable compile in debug without error (though lots of ‘device calling host’, a few ‘stack size cannot be statically determined’ warnings).
In release, the library also builds without error, but the executable fails to link with
nvlink fatal : Internal error: reference to deleted section
Can anyone explain this error or tell me how to identify its cause?