[all-commits] [llvm/llvm-project] eaee60: [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP i...

fodinabor via All-commits all-commits at lists.llvm.org
Thu Oct 29 15:25:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: eaee608448c832e8f806faae30ae4100620c4688
      https://github.com/llvm/llvm-project/commit/eaee608448c832e8f806faae30ae4100620c4688
  Author: Joachim Meyer <joachim at joameyer.de>
  Date:   2020-10-29 (Thu, 29 Oct 2020)

  Changed paths:
    M clang/lib/Headers/__clang_cuda_complex_builtins.h
    M clang/lib/Headers/openmp_wrappers/complex
    M clang/lib/Headers/openmp_wrappers/complex.h

  Log Message:
  -----------
  [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP in complex wrapper headers.

This is very similar to 7f1e6fcff942, just fixing a left-over.
With this, it should be possible to use both, -x cuda and -fopenmp in the same invocation,
enabling to use both OpenMP, targeting CPU, and CUDA, targeting the GPU.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list