tud-zih-energy / FIRESTARTER

FIRESTARTER: A Processor Stress Test Utility. This repository contains the source code generator. Our releases (including the generated source code and precompiled binaries) are available at https://tu-dresden.de/zih/firestarter/.
GNU General Public License v3.0
116 stars 25 forks source link

FIRESTARTER_CUDA(_ONLY): CMake cannot find cuBLAS/cuRAND libs when using NVIDIA HPC SDK #45

Closed MarkusVelten closed 2 years ago

MarkusVelten commented 2 years ago

When attempting to configure FIRESTARTER_CUDA(_ONLY) with the NVIDIA HPC SDK (NVHPC), cmake cannot find the cuBLAS and cuRAND libraries.

NVIDIA packages "regular" CUDA packages and the NVHPC packages differently, some libraries (including those mentioned) are found in different directories in these packages. When CUDA (e.g., nvcc compiler) is found, cmake assumes these libraries to be in the same same directory as the cudart libs, which is true for "regular" CUDA packages. However, all math libraries are shipped in a dedicated math_libs directory within the NVHPC package.

Setting the respective paths manually as part of the (c)cmake call does not work, as these paths will be reset during configuration.