[Openmp-commits] [PATCH] D50522: [OpenMP][libomptarget] Bringing up to spec with respect to OMP_TARGET_OFFLOAD env var

Ravi Narayanaswamy via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 9 13:23:46 PDT 2018


RaviNarayanaswamy added inline comments.


================
Comment at: libomptarget/src/interface.cpp:52
     DP("Failed to get device %" PRId64 " ready\n", device_id);
+    handle_target_outcome(false);
     return;
----------------
Why not move the check of handle_target_outcome into CheckDeviceAndCtors  so you dont have to do every time you invoke this function.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D50522





More information about the Openmp-commits mailing list