I’ve run into an internal compiler error. Below is how to reproduce it.
Does anyone know what might be going wrong and how to fix it?
$ pgc++ --version
pgc++ 18.10-1 64-bit target on x86-64 Linux -tp sandybridge
PGI Compilers and Tools
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
$ cat err.cc
#include <random>
int main() {
std::random_device rd;
std::minstd_rand0 engine(rd());
std::uniform_real_distribution<float> dist(
std::numeric_limits<float>::min(),
std::nextafter(1.0, std::numeric_limits<float>::max()));
dist(engine);
#pragma acc kernels
for (size_t i = 0; i < 1; ++i) {}
}
$ pgc++ -std=c++11 -ta=multicore -fast err.cc
PGCC-S-0000-Internal compiler error. memtype_dtype_match:unknown msize 3 (err.cc: 16)
PGCC-S-0000-Internal compiler error. memtype_dtype_match:unknown msize 3 (err.cc: 16)
PGCC-S-0000-Internal compiler error. memtype_dtype_match:unknown msize 3 (err.cc: 16)
PGCC-S-0000-Internal compiler error. memtype_dtype_match:unknown msize 3 (err.cc: 16)
PGCC-S-0000-Internal compiler error. memtype_dtype_match:unknown msize 3 (err.cc: 16)
PGCC/x86 Linux 18.10-1: compilation completed with severe errors