FindCUDAToolkit: Understand NVHPC versioned math library layout

The NVHPC packages bundle the CUDA math libraries in a sibling
directory (`math_libs`) instead of in with the rest of the
cuda libraries.

Depending on the NVHPC package the math_libs folder can have
versioned subdirectories, therefore we prefer finding the
same versions as the CUDA Toolkit and falling back to the
latest when not possible.
55 jobs for !6405 with find_cudatoolkit_understand_nvhpc_math_library_location in 15 minutes and 59 seconds (queued for 1 second)
latest detached
Status Job ID Name Coverage
  Build
passed build:centos6-x86_64 #6012727
linux docker build cmake manual

00:03:04

manual build:fedora34-ninja #6012728
linux-3.17 linux docker build cmake manual
manual build:macos-x86_64-makefiles #6012730
nonconcurrent xcode-12.5 shell macos cmake manual
manual build:macos-x86_64-ninja #6012729
nonconcurrent xcode-12.5 shell macos cmake manual
manual build:windows-vs2019-x64-ninja #6012731
nonconcurrent msvc-19.29-16.10 vs2019 shell windows cmake manual
passed lint:codespell #6012723
linux docker build cmake

00:02:13

passed lint:debian10-iwyu #6012724
linux docker build cmake

00:03:55

passed lint:fedora34-sphinx #6012726
linux-3.17 linux docker build cmake

00:06:34

passed lint:fedora34-tidy #6012725
linux-3.17 linux docker build cmake

00:06:38

 
  Test
created test:fedora34-ninja #6012732
x11 linux-3.17 linux docker cmake
created test:macos-x86_64-makefiles #6012734
nonconcurrent xcode-12.5 shell macos cmake
created test:macos-x86_64-ninja #6012733
nonconcurrent xcode-12.5 shell macos cmake
created test:windows-vs2019-x64-ninja #6012735
nonconcurrent msvc-19.29-16.10 vs2019 shell windows cmake
 
  Test Ext
passed test:cuda10.2-nvidia #6012738
linux docker cuda-rt cmake

00:00:50

passed test:debian10-ninja #6012736
linux-3.17 linux docker build cmake

00:03:19

passed test:fedora34-makefiles #6012737
linux-3.17 linux docker build cmake

00:06:14

created test:fedora34-ninja-multi #6012739
linux-3.17 linux docker build cmake
created test:macos-x86_64-xcode #6012740
concurrent xcode-12.5 shell macos cmake
created test:windows-vs2019-x64 #6012741
concurrent msvc-19.29-16.10 vs2019 shell windows cmake
 
  External
passed cdash

passed ghostflow-check-master

passed ghostflow-stager

passed cdash

passed cdash

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager