This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] target_data_begin: fail on device alloc fail
ClosedPublic

Authored by jdenny on Apr 14 2020, 4:56 PM.

Details

Summary

Without this patch, target_data_begin continues after an illegal
mapping or an out-of-memory error on the device. With this patch, it
terminates the runtime with an error instead.

The new test exercises only illegal mappings. I didn't think of a
good way to exercise out-of-memory errors from the test suite.

Diff Detail

Event Timeline

jdenny created this revision.Apr 14 2020, 4:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2020, 4:56 PM
jdenny updated this revision to Diff 258997.Apr 21 2020, 7:42 AM
jdenny edited the summary of this revision. (Show Details)

Extracted test infrastructure changes to D78566.

Rebased.

jdoerfert accepted this revision.Apr 21 2020, 9:33 AM

I assume this works also if we are not on those platforms.

LGTM.

This revision is now accepted and ready to land.Apr 21 2020, 9:33 AM

I assume this works also if we are not on those platforms.

It works on the platforms I tried: it runs the commands for the current platform and effectively skips (that is, calls echo instead) commands for the others.

LGTM.

Thanks.

This revision was automatically updated to reflect the committed changes.