Files
gpufetch/build.sh

26 lines
627 B
Bash
Executable File

#!/bin/bash
# gpufetch build script
set -e
rm -rf build/ gpufetch
mkdir build/
cd build/
# In case you have CUDA installed but it is not detected,
# - set CMAKE_CUDA_COMPILER to your nvcc binary:
# - set CMAKE_CUDA_COMPILER_TOOLKIT_ROOT to the CUDA root dir
# for example:
# cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DCMAKE_CUDA_COMPILER_TOOLKIT_ROOT=/usr/local/cuda/ ..
# In case you want to explicitely disable a backend, you can:
# Disable CUDA backend:
# cmake -DENABLE_CUDA_BACKEND=OFF ..
# Disable Intel backend:
# cmake -DENABLE_INTEL_BACKEND=OFF ..
cmake ..
make -j$(nproc)
cd -
ln -s build/gpufetch .