Could you, please, be so kind to explain to me what these issues in the compiler output exactly mean (my compiler is pgi (pgc++) free version 17.4)?
nvvmCompileProgram error: 9
Error: /tmp/pgaccEaLfA0ljoDdI.gpu (398, 50): parse void type only allowed for function results
I wonder how to find the source of this fail if the compiler does not write the the code line which causes it.
PGCC-W-0155-Compiler failed to translate accelerator region
Scanning dependencies of target AOS_GPU_casc_acc
[ 50%] Building CXX object CMakeFiles/AOS_GPU_casc_acc.dir/nbody.cpp.o
scalevec(float3, float):
167, Generating Tesla code
cross(float3, float3):
182, Generating acc routine seq
Generating Tesla code
normalize(float3):
193, Generating acc routine seq
Generating Tesla code
Rand32(unsigned int):
218, Generating implicit acc routine seq
Generating acc routine seq
Generating Tesla code
rndv(unsigned int):
227, Generating implicit acc routine seq
Generating acc routine seq
Generating Tesla code
main:
984, Accelerator restriction: unsupported statement type: opcode=ACCPLOOP
Accelerator kernel generated
Generating Tesla code
void std::swap(T1 &, T1 &):
5, include “algorithm”
60, include “utility”
70, include “stl_pair.h”
59, include “move.h”
181, Generating implicit acc routine seq
Generating acc routine seq
Generating Tesla code
std::remove_reference::type && std::move<Particle &>(T1 &&):
5, include “algorithm”
60, include “utility”
70, include “stl_pair.h”
59, include “move.h”
102, Generating implicit acc routine seq
Generating acc routine seq
Generating Tesla code
::operator +(float3, float3):
142, Generating implicit acc routine seq
Generating acc routine seq
Generating Tesla code
nvvmCompileProgram error: 9.
Error: /tmp/pgaccU3NkdSOEjKS.gpu (398, 50): parse void type only allowed for function results
PGCC-W-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (/home/70-gaa/source/GPU/AOS_GPU_casc_acc/nbody.cpp: 1)
PGCC/x86 Linux 17.4-0: compilation completed with warnings
[100%] Linking CXX executable AOS_GPU_casc_acc
[100%] Built target AOS_GPU_casc_acc
How I configure my project: cmake …/src -DCMAKE_C_FLAGS=pgcc -DCMAKE_CXX_FLAGS=pgc++ -DCMAKE_CXX_FLAGS=“-acc -Minfo=all -ta=nvidia”.
I have one c++ source code file, which I configure.