Syllo / nvtop

GPU & Accelerator process monitoring for AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm
Other
7.7k stars 282 forks source link

allow building without cuda toolkit? #202

Closed colemickens closed 1 year ago

colemickens commented 1 year ago

Hi, I like nvtop, but I don't like having to update cudatoolkit regularly via nixpkgs, and it's license-encumbered.

Does it make sense to have an option to build nvtop without CUDA? If so, is it something you'd consider adding?

Or maybe similar question, maybe an option to just not build with nvidia support for those of us with all-AMD systems?

Syllo commented 1 year ago

Nvtop will dynamically look for the nvidia libraries, and if they are not present, will just ignore NVIDIA GPUs.

I guess that the dependencies come from the way nvtop is packaged by nix, to get the libraries in the LD_PREFIX or whatnot. You should be able to change the nix expression to remove the cudatoolkit dependency and nvtop will keep working for AMD/Intel.

colemickens commented 1 year ago

Indeed it appears that someone has already added an option for skipping nvidia to the derivation. I swear it wasn't there when I looked last. Anyway, thanks for nvtop and the helpful reply!