Hallo.
I have a simple reproducing the error code at the link GitHub - AndStorm/QUESTION.
Its compilation fails with some “throw_bad_allocv” error.
The error log is:
PGCC-S-1000-Call in OpenACC region to procedure '_ZSt17__throw_bad_allocv' which has no acc routine information (/home/70-gaa/NFbuild_script_CHECK_GPU/CURRENT_WORK/QUESTION_ERROR/nbody.cpp: 491)
But if to comment #pragma acc seq on line 64 in T3MSContiniousProcessImpl.h, the code compiles and works.
Why?
The code compiles and works properly if to use PGI 19.4 without OpenAcc.
I need to copy the object of T3MSContiniousProcess class to GPU and call its methods in parallel OpenAcc
compute region on GPU. So, how to fix this compile error? It is in my full code.
Use PGI 19.4 and the compile line:
cmake . -DCMAKE_C_COMPILER=pgcc -DCMAKE_CXX_COMPILER=pgc++
-DCMAKE_C_FLAGS=“-acc -Minfo=acc -mcmodel=medium -ta=tesla:cc30
-Minline -Mcuda=cuda10.1” -DCMAKE_CXX_FLAGS=“-acc
-Minfo=acc -mcmodel=medium -ta=tesla:cc30 -Minline
-Mcuda=cuda10.1” -DCMAKE_CXX_STANDARD=17 -DACC=ON -DCUDA=ON
Could You be so kind to answer this question?