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

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Aug 10 04:08:12 PDT 2018


protze.joachim added a comment.

In https://reviews.llvm.org/D50522#1194805, @AlexEichenberger wrote:

> So you like deciding available on first use? This is what your comment seems to imply, but I am not 100% sure.


As I understand Jonas, he would prefer semantically something like:

  devices-available =  omp_get_num_devices()>0

This does not depend on a successful offload, just compares whether a device is there:

  if devices-available && DEFAULT:
    continue as if MANDATORY
  else:
    continue as if DISABLED


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D50522





More information about the Openmp-commits mailing list