[all-commits] [llvm/llvm-project] af478c: [offload][runtimes] Forward user-provided system c...

Michael Kruse via All-commits all-commits at lists.llvm.org
Fri Jun 21 10:50:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af478c82a5f6e42ff5d1e67dcefbf9dd0fee501c
      https://github.com/llvm/llvm-project/commit/af478c82a5f6e42ff5d1e67dcefbf9dd0fee501c
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/runtimes/CMakeLists.txt

  Log Message:
  -----------
  [offload][runtimes] Forward user-provided system configuration (#96303)

In order for LLVM_ENABLE_RUNTIMES projects to find their requirements,
they need access to user-provided configuration options such as
`CMAKE_PREFIX_PATH`. Forward a selection of configuration options such
that runtimes uses the same system introspection as LLVM and
LLVM_ENABLE_PROJECTS do.

The concrete symptom this is solving is that the path to CUDA is
provided using `cmake -DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda` or `CUDA_PATH`,
but is ignored by offload. Handling for this case already existed for
libc, but only when it was enabled and only `CUDAToolkit_ROOT` (The
former is for `find_package(CUDA)`, the latter for
`find_package(CUDAToolkit)`, `CUDA_PATH` is used by
`find_package(CUDAToolkit)` and `enable_language(CUDA)`).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list