1. 12 Feb, 2021 1 commit
    • Brad King's avatar
      CUDA: Capture all nvcc output when extracting toolkit root · 9ea66b2d
      Brad King authored
      Since commit fb2afef6 (CUDA: Support nvcc symlinking to ccache,
      2021-01-07) and commit 3cef91a3 (CUDA: Always extract CUDA Toolkit
      root from nvcc verbose output, 2021-02-03) we always run the command
      `nvcc -v __cmake_determine_cuda` to look for the toolkit root in its
      stderr.  On Windows, that command may print to stdout instead, so
      capture that as well.
      9ea66b2d
  2. 08 Feb, 2021 1 commit
    • Robert Maynard's avatar
      CUDA: Always extract CUDA Toolkit root from nvcc verbose output · 3cef91a3
      Robert Maynard authored
      Fixes #21750, #21763
      
      Given that NVCC can be provided by multiple different sources (NVIDIA HPC SDK, CUDA Toolkit, distro)
      each of which has a different layout, we need to extract the CUDA toolkit root from the compiler
      itself, allowing us to support numerious different scattered toolkit layouts.
      
      The NVIDIA HPC SDK specifically ships two copies of nvcc one in
      `compilers/bin/` and one in `cuda/bin`. Thus when using
      `compilers/bin/nvcc` the Toolkit root logic fails.
      3cef91a3
  3. 11 Jan, 2021 1 commit
  4. 02 Dec, 2020 2 commits
  5. 02 Nov, 2020 1 commit
    • Jan Bernlöhr's avatar
      CUDA: Enable support on QNX · bcdd486b
      Jan Bernlöhr authored
      This fixes the following two issues with the CUDA support on QNX:
      
      * cuda target name is not derived correctly (should be `aarch64-qnx`).
      * linking `cudart` must not be linked against `rt`, `dl`, `pthread`.
      
      This enables to use cmake's native cuda support on QNX.
      
      Fixes: #21381
      bcdd486b
  6. 22 Jun, 2020 1 commit
  7. 24 Feb, 2020 1 commit
  8. 16 Dec, 2019 1 commit
  9. 13 Nov, 2019 1 commit
  10. 11 Nov, 2019 1 commit
    • Robert Maynard's avatar
      FindCUDA: CUDA_LIBRARIES doesn't contain raw `-pthread` · 46371132
      Robert Maynard authored
      If a person tried to pass `CUDA_LIBRARIES` to nvcc compiler it could
      fail as it might have `-pthread` which nvcc doesn't support. Instead
      we now use the `Threads::Threads` so that nvcc gets the correct
      `-Xcompiler -pthread` flag.
      46371132
  11. 04 Nov, 2019 2 commits
  12. 01 Nov, 2019 1 commit
  13. 18 Jun, 2019 1 commit
  14. 14 May, 2019 1 commit
  15. 07 Dec, 2018 1 commit
    • Brad King's avatar
      FindThreads: Drop IRIX-specific options and results · 83dab0c1
      Brad King authored
      We do not need to support IRIX anymore, so drop relevant parts.  In
      particular, the `CMAKE_THREAD_PREFER_PTHREAD` is frequently confused
      with `THREADS_PREFER_PTHREAD_FLAG`.
      
      Also remove references to the IRIX-specific options and results
      from other modules and tests.
      83dab0c1
  16. 25 Oct, 2018 1 commit
  17. 22 Oct, 2018 1 commit
  18. 18 Sep, 2018 1 commit
  19. 14 Sep, 2018 1 commit
  20. 23 Aug, 2018 1 commit
  21. 04 Jun, 2018 1 commit
  22. 09 May, 2018 1 commit
    • Will Feng's avatar
      FindCUDA: Add support for sccache · 53ffff22
      Will Feng authored
      When `CMAKE_C_COMPILER` is `sccache`, pass plain `cl` as the host
      compiler to `nvcc`.  Otherwise, `nvcc` does not accept it.
      53ffff22
  23. 07 May, 2018 1 commit
    • Brad King's avatar
      FindCUDA: Fix regression in separable compilation without cublas · 9a663457
      Brad King authored
      Revert commit v3.11.0-rc1~274^2 (FindCUDA: Add cublas device library to
      separable compilation, 2017-11-03).  It breaks targets that do not link
      to cublas.  Another solution will be needed to solve the original
      problem in a more compatible way.
      
      Fixes: #17965
      9a663457
  24. 06 Apr, 2018 1 commit
  25. 29 Mar, 2018 1 commit
  26. 13 Feb, 2018 1 commit
    • luz.paz's avatar
      MAINT: Misc. typos · 193082a3
      luz.paz authored
      Found via `codespell -q 3 -I ../cmake-whitelist.txt`.
      193082a3
  27. 30 Jan, 2018 1 commit
  28. 10 Jan, 2018 1 commit
  29. 08 Jan, 2018 2 commits
    • Beren Minor's avatar
      Unhardcode the CMAKE_CONFIGURATION_TYPES values · 48f7e2d3
      Beren Minor authored
      This removes duplicated code for per-config variable initialization by
      providing a `cmake_initialize_per_config_variable(<PREFIX> <DOCSTRING>)`
      function.
      
      This function initializes a `<PREFIX>` cache variable from `<PREFIX>_INIT`
      and unless the `CMAKE_NOT_USING_CONFIG_FLAGS` variable is defined, does
      the same with `<PREFIX>_<CONFIG>` from `<PREFIX>_<CONFIG>_INIT` for every
      `<CONFIG>` in `CMAKE_CONFIGURATION_TYPES` for multi-config generators or
      `CMAKE_BUILD_TYPE` for single-config generators.
      48f7e2d3
    • Aaron Bray's avatar
      FindCUDA: Update to properly find MSVC 2017 compiler tools · fab1b432
      Aaron Bray authored
      An implementation that handles the different installation locations of
      visual studio compiler tools
      fab1b432
  30. 06 Jan, 2018 1 commit
  31. 03 Jan, 2018 1 commit
  32. 29 Dec, 2017 1 commit
  33. 29 Nov, 2017 1 commit
  34. 20 Nov, 2017 1 commit
    • Christian Pfeiffer's avatar
      Modules: Replace coded PATHS with PATH_SUFFIXES · a62d50ec
      Christian Pfeiffer authored
      Some modules assume that `/usr` and `/usr/local` are the only
      `CMAKE_PREFIX_PATH` entries and explicitly enumerate all paths instead
      of using `PATH_SUFFIXES` and relying on the dynamic set of prefix paths.
      This commit attempts to rectify that behavior.
      a62d50ec
  35. 03 Nov, 2017 1 commit
    • luz.paz's avatar
      Fix trivial typos in text · 777e87ae
      luz.paz authored
      Some are user facing.
      
      Found using
      
          codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt`
      
      whereby the whitelist contained:
      
          ans
          dum
          helpfull
          emmited
          emmitted
          buil
          iff
          isnt
          nto
          ot
          pathes
          substract
          te
          todays
          upto
          whitespaces
      777e87ae
  36. 23 Oct, 2017 1 commit
  37. 06 Oct, 2017 1 commit