I have a simple code: https://github.com/AndStorm/openacc.git. It reproduces the error i get.
I use the compile line, which is specified in README.md file of the git repository, because i am not able to write it here - when i click on the “Preview” button, the browser opens a blank page with “403 - Forbidden”. The code is compiled for launch on GPU using OpenAcc and PGI 19.4 compiler.
The code works properly. But if to uncomment the line 233 of nbody.cpp file (it is already uncommented), the compilation fails with an error:
PGCC-S-0155-Procedures called in a compute region must have acc routine information: t3::ParticleTable::ParticleTable(const t3::ParticleTable&) (/home/70-gaa/NFbuild_script_CHECK_GPU/source_HOW_KMV_told/nbody.cpp: 233) PGCC-S-0155-Accelerator region ignored; see -Minfo messages
And if to add “-fast” compiler flag, the code compiles and seemes to work well.
What should i do to get the code to work without “-fast”?
P. C. I sent another question to the PGI Customer Service yesterday and did not receive a reply yet, i am afraid it was lost. Could You be so kind to have a look at it?