I have some subroutines that I can compile as a DLL and link against an executable without any OpenACC directives. Adding directives yields linker errors around libaccg.lib. I understand that I don’t seem to be linking to that library but I’m unsure how to proceed, the compiler manual and user guide haven’t helped me.
My build process is below:
pgf90 -Bdynamic -m32 -Minfo=all -acc -ta=nvidia -c MCLIB_GPU.F90 && pgf90 -Mmakedll -Bdynamic -acc -ta=nvidia -Minfo=all -o MCLIB_GPU.dll MCLIB_GPU.obj