HomePhabricator

[OpenMP] target_data_begin: fail on device alloc fail

Authored by jdenny on Apr 21 2020, 1:27 PM.

Description

[OpenMP] target_data_begin: fail on device alloc fail

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.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D78170

Details

Committed
jdennyApr 21 2020, 2:10 PM
Reviewer
jdoerfert
Differential Revision
D78170: [OpenMP] target_data_begin: fail on device alloc fail
Parents
rGba942610f6be: [OpenMP] Add scaffolding for negative runtime tests
Branches
Unknown
Tags
Unknown