Hello Mat,
I am using :
$ pgc++ --version
pgc++ 19.10-0 LLVM 64-bit target on x86-64 Linux -tp skylake
And if I run without nordc then we get :
+ pgc++ -acc -Minfo ext.cpp -c -fPIC
y_square():
2, Generating acc routine seq
Generating Tesla code
+ pgc++ -acc -Minfo test.cpp -c -fPIC
init(double):
10, Generating Tesla code
26, #pragma acc loop gang, vector(3) /* blockIdx.x threadIdx.x */
sample():
34, Generating Tesla code
36, #pragma acc loop gang, vector(3) /* blockIdx.x threadIdx.x */
+ pgc++ -acc -shared -o test.so test.o ext.cpp
ext.cpp:
+ pgc++ -acc main.cpp test.so
main.cpp:
+ ./a.out
Failing in Thread:1
call to cuModuleGetGlobal returned error 500: Not found
(note that I am doing this in the context of Clarification on using OpenACC in a shared library - #15 by DavidGutzwiller where I want to use this with shared library support)