https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104422
Bug ID: 104422 Summary: nvptx: for-3.exe fail with driver 390.x Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- While testing libgomp using legacy driver 390.x on a maxwell card, Quadro K620 I ran into a for-3.exe execution failure. I've minimized it to this: ... $ cat for-3.c /* { dg-additional-options "-std=gnu99" { target c } } */ extern void abort (); #pragma omp declare target int a[1500]; void test_ds_normal (void) { #pragma omp target update to(a) ; #pragma omp target teams #pragma distribute simd for (int i = 0; i < 1500; i++) a[i] += 2; #pragma omp target update from(a) ; } #pragma omp end declare target int main (void) { int err = 0; for (int i = 0; i < 1500; i++) a[i] = i - 25; test_ds_normal (); for (int i = 0; i < 1500; i++) if (a[i] != i - 23) err = 1; if (err) abort (); return 0; } ... This might be a driver problem, we know of problems that we reported to nvidia that they're not going to fix in this driver. Then again, it might not be a driver problem...