https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102544
--- Comment #3 from Andrew Stubbs <ams at gcc dot gnu.org> --- That output shows that we have the correct libgomp and rocm is installed and working. Libgomp initialized the GCN plugin, but did not attempt to initialize the device (the next message in the output should have been "Selected kernel arguments memory region", or at least a GCN error message). Instead we have a target-independent libgomp error. Presumably the kernel metadata is malformed, somehow? I think we need a testcase to debug this further, preferably reduced to be as simple as possible. Perhaps it would be a good idea to start with a minimal toy example and see if that works on the device. #include <openacc.h> #include <stdio.h> int main () { int v = 1; #pragma acc parallel copy(v) { if (acc_on_device(acc_device_host)) v = -1; // error else { v = 2; // success } } printf ("v is %d\n", v); return v; }