I am compiling a cuda fortran code and getting this error:
nvlink error : Entry function ‘function-name’ uses too much data for compiler-generated constants; please recompile with -Xptxas --disable-optimizer-constants
But the problem is option “-Xptxas --disable-optimizer-constants” does not work with pgfortran compiler:
pgfortran-Error-Unknown switch: -Xptxas
pgfortran-Error-Unknown switch: --disable-optimizer-constants
Is there any way to pass the options through pgfortran?
Any help is appreciated. Thanks in advance.