1

https://www.olcf.ornl.gov/tutorials/mixing-openacc-with-gpu-libraries/から例をダウンロードしました / コードは上記のリンク先に記載されています

1) pgcc を使用する

pgc++ -c cuFFT.cu
pgcc -acc   -Mcudalib=cufft fft.c cufft.o
works perfectly fine

2) pgc++ を使用する

pgc++ -c cuFFT.cu
pgc++ -acc   -Mcudalib=cufft fft.cpp (or .c samefiles) cufft.o

次のエラーが表示されます

    undefined reference to launchCUFFT(float*, int, void*)
     pgacclnk: child process exit status 1: /usr/bin/ld
4

1 に答える 1