[all-commits] [llvm/llvm-project] 9f5c6d: [libc] Search for the CUDA patch explicitly when t...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Apr 5 13:15:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f5c6dcf595229fccf08a5c8acfbb1ac01cd85f9
      https://github.com/llvm/llvm-project/commit/9f5c6dcf595229fccf08a5c8acfbb1ac01cd85f9
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M libc/cmake/modules/LLVMLibCObjectRules.cmake
    M libc/cmake/modules/LLVMLibCTestRules.cmake
    M libc/cmake/modules/prepare_libc_gpu_build.cmake
    M libc/startup/gpu/nvptx/CMakeLists.txt
    M libc/test/IntegrationTest/CMakeLists.txt

  Log Message:
  -----------
  [libc] Search for the CUDA patch explicitly when testing

The packaged version of the `libc` library does not depend on the CUDA
installation because it only uses `clang` and emits LLVM-IR. However,
for testing we directly need the CUDA toolkit to emit and execute the
files. This patch explicitly passes `--cuda-path` to the relevant
compilations for NVPTX testing.

Reviewed By: tra

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


  Commit: f5459fc03120a03040c8f2f41d5a28bea79ecf75
      https://github.com/llvm/llvm-project/commit/f5459fc03120a03040c8f2f41d5a28bea79ecf75
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M llvm/runtimes/CMakeLists.txt

  Log Message:
  -----------
  [OpenMP] Add tool dependencies in runtimes mode

The OpenMP offloading device runtime depends on multiple tools. We
should ensure that these tools are build before invoking the OpenMP
build.

Reviewed By: tra

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


Compare: https://github.com/llvm/llvm-project/compare/e787ef866345...f5459fc03120


More information about the All-commits mailing list