[Openmp-commits] [PATCH] D23587: [OPENMP] Implementation of omp_get_default_device and omp_set_default_device

Jonas Hahnfeld via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 17 23:27:30 PDT 2016

Hahnfeld added a comment.

In https://reviews.llvm.org/D23587#518589, @grokos wrote:

> As discussed last week, libomptarget does not implement these two functions. The 4.0 standard mandates that the default device is set per-task. libomptarget (and liboffload as far as I understand) has no notion of tasks, so implementing those functions anywhere else than libomp would be problematic.

Hmm, that wasn't really part of the discussion but anyway I now understand why this has to be done here (I was under the impression that there would only be one `default-device-var` per program).

I assume you will then call `omp_get_default_device()` from within the `libomptarget`?



More information about the Openmp-commits mailing list