[all-commits] [llvm/llvm-project] acdc01: [Offload][UnitTests] Fix incorrect CUDA path varia...

Leandro Lacerda via All-commits all-commits at lists.llvm.org
Sat Aug 2 07:09:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acdc01b0392343daa7b91a34ba5d9c45372ed1bf
      https://github.com/llvm/llvm-project/commit/acdc01b0392343daa7b91a34ba5d9c45372ed1bf
  Author: Leandro Lacerda <leandrolcampos at yahoo.com.br>
  Date:   2025-08-02 (Sat, 02 Aug 2025)

  Changed paths:
    M offload/unittests/CMakeLists.txt

  Log Message:
  -----------
  [Offload][UnitTests] Fix incorrect CUDA path variable in CMake helper (#151820)

This PR fixes a minor bug in the `add_offload_test_device_code` CMake
helper function in `offload/unittests/CMakeLists.txt`.

The function was discovering the local CUDA Toolkit path and storing it
in the `cuda_path` variable but was then using the incorrect `CUDA_ROOT`
variable in the `add_custom_command` call for the NVPTX target.

This change corrects the command to use the intended `cuda_path`
variable.



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