Code:
% pwd
/usr/home/grahamperrin/dev/gpufetch
% echo $0
/bin/tcsh
% ./build.sh
-- The CXX compiler identification is Clang 13.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
-- Found PCIUTILS: /usr/local/lib/libpci.so
-- ----------------------
-- gpufetch build report:
-- CUDA backend: OFF
-- Intel backend: ON
-- ----------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /home/grahamperrin/dev/gpufetch/build
[ 25%] Building CXX object CMakeFiles/intel_backend.dir/src/intel/udev.cpp.o
[ 25%] Building CXX object CMakeFiles/intel_backend.dir/src/intel/intel.cpp.o
[ 25%] Building CXX object CMakeFiles/intel_backend.dir/src/intel/uarch.cpp.o
[ 25%] Building CXX object CMakeFiles/intel_backend.dir/src/intel/pci.cpp.o
[ 31%] Building CXX object CMakeFiles/intel_backend.dir/src/intel/cpuid.cpp.o
[ 37%] Linking CXX static library libintel_backend.a
[ 37%] Built target intel_backend
[ 56%] Building CXX object CMakeFiles/gpufetch.dir/src/common/gpu.cpp.o
[ 56%] Building CXX object CMakeFiles/gpufetch.dir/src/common/main.cpp.o
[ 56%] Building CXX object CMakeFiles/gpufetch.dir/src/common/args.cpp.o
[ 62%] Building CXX object CMakeFiles/gpufetch.dir/src/common/pci.cpp.o
[ 68%] Building CXX object CMakeFiles/gpufetch.dir/src/common/sort.cpp.o
[ 75%] Building CXX object CMakeFiles/gpufetch.dir/src/common/global.cpp.o
[ 81%] Building CXX object CMakeFiles/gpufetch.dir/src/common/printer.cpp.o
[ 87%] Building CXX object CMakeFiles/gpufetch.dir/src/common/master.cpp.o
[ 93%] Building CXX object CMakeFiles/gpufetch.dir/src/common/uarch.cpp.o
[100%] Linking CXX executable gpufetch
[100%] Built target gpufetch
% ./gpufetch
[ERROR]: No GPU was detected! Available GPUs are:
- GPU 0: AMD 1002:6841
Please, make sure that the appropiate backend is enabled:
- CUDA backend: OFF
- Intel backend: ON
Visit https://github.com/Dr-Noob/gpufetch#2-backends for more information
% pkg provides /cuda/bin/nvcc
% pkg provides bin/nvcc
Name : kokkos-3.5.00
Desc : C++ performance portability programming ecosystem
Repo : FreeBSD
Filename: usr/local/bin/nvcc_wrapper
% which nvcc
nvcc: Command not found.
%
From <https://github.com/Dr-Noob/gpufetch#21-cuda-backend-is-not-enabled-why> (for example):
cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DCMAKE_CUDA_COMPILER_TOOLKIT_ROOT=/usr/local/cuda/ ..
– is this, or something like it, possible with FreeBSD?
CUDA
I understand that FreeBSD supports NVidia graphics cards, via binary distribution from NVidia themselves, but, I was just wondering what the blocker is to a CUDA library on FreeBSD, anyone know? Is it just NVidia chose not to release CUDA for FreeBSD?
forums.freebsd.org
general/other - Using Linux Emuation as a means to utilize CUDA.
I was tasked with seeing the viability of FreeBSD as a workspace as we need to shift away from CentOS. FreeBSD obviously does not have official support for CUDA drivers, however I was told it "could" make use of CentOS emulation which I was asked to try. If it is completely impossible to...
forums.freebsd.org