[all-commits] [llvm/llvm-project] e9f9df: [libomptarget] Change nvcc compilation to use a un...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Wed Oct 30 18:59:10 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e9f9dfab82bbaadc6b6d8d0eafba017ef5d94fd0
      https://github.com/llvm/llvm-project/commit/e9f9dfab82bbaadc6b6d8d0eafba017ef5d94fd0
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2019-10-31 (Thu, 31 Oct 2019)

  Changed paths:
    M openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
    A openmp/libomptarget/deviceRTLs/nvptx/unity.cu

  Log Message:
  -----------
  [libomptarget] Change nvcc compilation to use a unity build

Summary:
[libomptarget] Change nvcc compilation to use a unity build

This allows nvcc to inline functions between what would otherwise be distinct
translation units, which in turn removes any runtime cost from implementing
functions in source files (as opposed to inline in headers).

This will then allow the circular dependencies in deviceRTL to be readily
broken and individual components more easily shared between architectures.

Reviewers: ABataev, jdoerfert, grokos, RaviNarayanaswamy, hfinkel, ronlieb, gregrodgers

Reviewed By: jdoerfert

Subscribers: mgorny, openmp-commits

Tags: #openmp

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




More information about the All-commits mailing list