https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85463
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to Martin Liška from comment #2) > Tom: Can the bug be marked as resolved? One has ! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } } That's for the output: ---- ERROR STOP (possibly followed by a number or message string) libgomp: cuStreamSynchronize error: an illegal instruction was encountered ---- Which is not that nice. Also the error code is not propagated. (It is the value of the integer used with 'error stop' or one when using nothing or a string.) I assume the illegal instruction was a way to cause terminations with non-zero exit code … In my opinion: I think that's the only issue with the current implementation; if one regards this part as WONTFIX – then the commit in comment 1 has FIXED it. Otherwise, one can leave this bug OPEN until a better solution is found.