thanks! this community is so kind! now i tried this simple test. {.emit:""" #include "openacc.h" """.} proc test() = var a: ptr UncheckedArray[int] for i in `||`(0,9,annotation="parallel if(0) \n#pragma acc kernels"): a[i] = i when isMainModule: test() # complie : nim c --cc:clang --clang.exe="nvc" --clang.linkerexe="nvc" --passC:"-Minfo=all -acc=gpu -gpu=cc86" nvc_test.nim Run
then i met this error message ... Hint: [Link] /usr/bin/ld: /home/nimcache/@mnvc_test.nim.c.o: in function `test__nvc95test_u1': /home/nimcache/@mnvc_test.nim.c:36: undefined reference to `__pgi_uacc_enter' /usr/bin/ld: /home/nimcache/@mnvc_test.nim.c:34: undefined reference to `__pgi_uacc_computestart2' /usr/bin/ld: /home/nimcache/@mnvc_test.nim.c:34: undefined reference to `__pgi_uacc_launch' /usr/bin/ld: /home/nimcache/@mnvc_test.nim.c:36: undefined reference to `__pgi_uacc_computedone' /usr/bin/ld: /home/nimcache/@mnvc_test.nim.c:36: undefined reference to `__pgi_uacc_noversion' .... Run how can be solved? someone know this problem??