When I compile pgc++, I encountered following errors. I am sure such error has no relationship with my code (line 259). No matter what code I comment out, I got the same error. I just simply add #pragma acc routine in front of my subroutine
operator new (unsigned long, void *):
38, include “iostream”
39, include “ostream”
38, include “ios”
42, include “ios_base.h”
41, include “locale_classes.h”
40, include “string”
41, include “allocator.h”
46, include “c++allocator.h”
33, include “new_allocator.h”
33, include “new”
130, Generating implicit acc routine seq
Generating acc routine seq
Generating Tesla code
operator delete (void *, void *):
38, include “iostream”
39, include “ostream”
38, include “ios”
42, include “ios_base.h”
41, include “locale_classes.h”
40, include “string”
41, include “allocator.h”
46, include “c++allocator.h”
33, include “new_allocator.h”
33, include “new”
135, Generating implicit acc routine seq
Generating acc routine seq
Generating Tesla code
PGCC-S-0000-Internal compiler error. Call in OpenACC region to support routine - memcmp (/xxx.cpp: 259)
PGCC-W-0155-Compiler failed to translate accelerator region (see -Minfo messages): Missing branch target block (/xxx.cpp: 1)
std::char_traits::compare(const char *, const char *, unsigned long):
38, include “iostream”
39, include “ostream”
38, include “ios”
40, include “char_traits.h”
259, Generating implicit acc routine seq
Generating acc routine seq
Generating Tesla code
262, Accelerator restriction: unsupported call to support routine ‘memcmp’
42, include “ios_base.h”
PGCC-F-0704-Compilation aborted due to previous errors. (/xxx.cpp)
PGCC/x86 Linux 18.4-0: compilation aborted