[Openmp-commits] [PATCH] D118662: [OpenMP][libomp] Introduce oneAPI compiler support

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 31 15:26:34 PST 2022


jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar, hbae.
jlpeyton added a project: OpenMP.
Herald added subscribers: guansong, yaxunl, mgorny.
jlpeyton requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

Introduce `KMP_COMPILER_ICX` macro to represent compilation with oneAPI compiler. This is just paired with `KMP_COMPILER_ICC` in most places

Fixup flag detection and compiler ID detection in CMake. Older CMake's detect IntelLLVM as Clang. Check for the `__INTEL_CLANG_COMPILER` pre-defined macro to determine if actually using oneAPI compiler.

Fix many compiler warnings from oneAPI compiler (both Linux and Windows). Many are unused variable warnings.

Fixup many of the tests to have non-empty parallel regions as they are elided by oneAPI compiler. Also have OMPT tests include `-fno-omit-frame-pointer` when available as oneAPI removes it by default.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118662

Files:
  openmp/cmake/DetectTestCompiler/CMakeLists.txt
  openmp/cmake/OpenMPTesting.cmake
  openmp/cmake/config-ix.cmake
  openmp/runtime/cmake/LibompCheckLinkerFlag.cmake
  openmp/runtime/cmake/config-ix.cmake
  openmp/runtime/src/kmp.h
  openmp/runtime/src/kmp_affinity.cpp
  openmp/runtime/src/kmp_atomic.cpp
  openmp/runtime/src/kmp_atomic.h
  openmp/runtime/src/kmp_barrier.cpp
  openmp/runtime/src/kmp_csupport.cpp
  openmp/runtime/src/kmp_debugger.cpp
  openmp/runtime/src/kmp_lock.cpp
  openmp/runtime/src/kmp_os.h
  openmp/runtime/src/kmp_runtime.cpp
  openmp/runtime/src/kmp_stub.cpp
  openmp/runtime/src/kmp_version.cpp
  openmp/runtime/src/ompt-general.cpp
  openmp/runtime/src/z_Windows_NT_util.cpp
  openmp/runtime/test/CMakeLists.txt
  openmp/runtime/test/affinity/format/increase.c
  openmp/runtime/test/affinity/format/nested.c
  openmp/runtime/test/affinity/format/nested2.c
  openmp/runtime/test/affinity/format/nested_mixed.c
  openmp/runtime/test/affinity/format/nested_serial.c
  openmp/runtime/test/affinity/format/proc_bind.c
  openmp/runtime/test/affinity/format/simple.c
  openmp/runtime/test/affinity/format/simple_env.c
  openmp/runtime/test/affinity/omp-places-invalid-syntax.c
  openmp/runtime/test/lit.cfg
  openmp/runtime/test/lit.site.cfg.in
  openmp/runtime/test/omp_testsuite.h
  openmp/runtime/test/ompt/callback.h
  openmp/runtime/test/ompt/misc/finalize_tool.c
  openmp/runtime/test/ompt/misc/unset_callback.c
  openmp/runtime/test/ompt/tasks/taskwait-depend.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118662.404749.patch
Type: text/x-patch
Size: 35561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220131/e8f13b66/attachment-0001.bin>


More information about the Openmp-commits mailing list