commit | fc9bba276942fd8fc936fe1810d3f7f5b869f61c | [log] [tgz] |
---|---|---|
author | Joseph Huber <jhuber6@vols.utk.edu> | Mon Oct 18 11:41:43 2021 -0400 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Oct 29 12:00:45 2021 -0700 |
tree | 89d355c7fdc1244c20eda3dd5955c82b3fc564ef | |
parent | bc4b0e71505ad7ee4473d268fe80c9e3328564d0 [diff] |
[OpenMP] Check output of malloc in the device for debug A common problem is the device running out of global heap memory and crashing due to a nullptr dereference when using the data sharing stack. This explicitly checks that a nullptr was not returned by malloc when debugging field 1 is enabled. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D112005 GitOrigin-RevId: 6dd791bca858c0d5241689c9eefd9313fe823ee3