[all-commits] [llvm/llvm-project] ffb21e: [OpenMP] Enable omp_get_num_devices() on Windows

Hansang Bae via All-commits all-commits at lists.llvm.org
Thu Feb 11 13:08:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffb21e7f0593fde83568ae364040296fe94cf347
      https://github.com/llvm/llvm-project/commit/ffb21e7f0593fde83568ae364040296fe94cf347
  Author: Hansang Bae <hansang.bae at intel.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M openmp/runtime/cmake/LibompHandleFlags.cmake
    M openmp/runtime/src/kmp_ftn_entry.h
    M openmp/runtime/src/kmp_os.h
    M openmp/runtime/src/z_Windows_NT_util.cpp

  Log Message:
  -----------
  [OpenMP] Enable omp_get_num_devices() on Windows

This patch enables omp_get_num_devices() and omp_get_initial_device() on
Windows by providing an alternative to dlsym on Windows, and proposes to
add a new libomptarget entry, __tgt_get_num_devices().

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




More information about the All-commits mailing list