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

fodinabor via All-commits all-commits at lists.llvm.org
Wed Nov 25 21:54:53 PST 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 890fdb8031e3ea2b2ede1e8b90c34a8977e38548
      https://github.com/llvm/llvm-project/commit/890fdb8031e3ea2b2ede1e8b90c34a8977e38548
  Author: Joachim Meyer <joachim at joameyer.de>
  Date:   2020-11-26 (Thu, 26 Nov 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

(cherry picked from commit eaee608448c832e8f806faae30ae4100620c4688)




More information about the All-commits mailing list