No need to pass -no-pie with gcc-11, but still throwing some warnings: /usr/bin/ld: /tmp/ccpIxsYV.crtoffloadtable.o: warning: relocation against `__offload_vars_end' in read-only section `.rodata' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
Still stop running with big size matrices: ./test.x 1024 dim1 = dim2 = 1024 MATMUL Time = 0.12400000000000000 libgomp: cuCtxSynchronize error: the launch timed out and was terminated libgomp: cuMemFree_v2 error: the launch timed out and was terminated libgomp: device finalization failed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1907812 Title: Can't build simple OpenMP offloading programs (needs -no-pie) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs