!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

290 Members
CUDA packages maintenance and support in nixpkgs | https://github.com/orgs/NixOS/projects/27/ | https://nixos.org/manual/nixpkgs/unstable/#cuda58 Servers

Load older messages


SenderMessageTime
4 Oct 2024
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)I don’t have an easy way to test all the code paths different libraries could use to call into TRT or know which parts are accelerated with cuDNN but I am trying to make sure the latest working version of cuDNN is supplied to TRT in Nixpkgs :/15:24:20
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)Jetson, for example, doesn’t have a cuDNN 8.9.6 release anywhere I can find (tarball or Debian installer), but that’s the version TRT has in the support matrix for the platform, so I’ve been using 8.9.5 (which does has a tarball for Jetson).15:25:44
5 Oct 2024
@glepage:matrix.orgGaétan Lepage Hey guys !
I noticed that the CUDA features of tinygrad were not working on non-NixOS linux systems.
10:22:50
@glepage:matrix.orgGaétan Lepage More precisely it can't find the libnvrtc.so lib. 10:23:41
@glepage:matrix.orgGaétan LepageDo I need to run it using nixGL ?10:23:49
@ss:someonex.netSomeoneSerge (back on matrix)
In reply to @glepage:matrix.org
Do I need to run it using nixGL ?
No, just add ${getLib cuda_nvrtc}/lib to the search path
11:01:19
@ss:someonex.netSomeoneSerge (back on matrix)I'm en route, will reply to stuff on tuesday11:02:56
@glepage:matrix.orgGaétan LepageOk, I will try that thanks !11:31:16
7 Oct 2024
@ironbound:hackerspace.pl@ironbound:hackerspace.pl left the room.13:26:32
@glepage:matrix.orgGaétan Lepage

Hi,
I think that tinygrad is missing some libraries because I can get it to crash at runtime with:

Error processing prompt: Nvrtc Error 6, NVRTC_ERROR_COMPILATION
<null>(3): catastrophic error: cannot open source file "cuda_fp16.h"
  #include <cuda_fp16.h>
20:24:15
@glepage:matrix.orgGaétan Lepage Currently, we already patch the path to libnvrtc.so and libcuda.so, but maybe we should make the headers available too. 20:26:24
@glepage:matrix.orgGaétan Lepage * Currently, we already patch the path to libnvrtc.so and libcuda.so, but maybe we should make the headers available too. 20:35:11
@aidalgol:matrix.orgaidalgol What is that doing that a missing header is a runtime error? 20:44:05
@glepage:matrix.orgGaétan Lepage I think that tinygrad is compiling cuda kernels at runtime. 20:46:22
@glepage:matrix.orgGaétan Lepage That's why this missing kernel causes a crash when using the library.
tinygrad is entirely written in python and is thus itself not compiled at all.
20:46:55
@glepage:matrix.orgGaétan LepageThis is for sure quite unusual and this is why I am not sure how to make this header available "at runtime"...20:48:31
@aidalgol:matrix.orgaidalgol I figured it must be something like that. I think any library derivation should be providing the headers in the derivation's dev. Given the error message shows a #include line, and with the system header brackets, seems we need to pass a path to the tinygrad build somehow. 21:14:39
@aidalgol:matrix.orgaidalgol Does whatever nvidia compiler it's using have an equivalent to -isystem for gcc? 21:16:18
@glepage:matrix.orgGaétan Lepage Yes you are right. In the meantime, I found out that cuda_fp16.h is provided by cudaPackaged.cuda_cudart.dev 21:18:16
@glepage:matrix.orgGaétan Lepage The issue is that the way they invoke the compiler is a bit obscure: https://github.com/search?q=repo%3Atinygrad%2Ftinygrad%20nvrtcGetCUBIN&type=code 21:19:30
@glepage:matrix.orgGaétan Lepage I think that the closest examples within nixpkgs are cupy and numba.
But both of them operate this a bit differently.
21:20:06
8 Oct 2024
@pascal.grosmann:scs.ems.host@pascal.grosmann:scs.ems.host left the room.10:55:06
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)From what I’ve seen in the Python ecosystem, compiling kernels at runtime is becoming more commonplace because it reduces the size of binaries you ship and allows optimizing for the hardware you’re specifically running on. For example, JAX (via XLA) support auto tuning via Triton by compiling and running a number of different kernels.15:46:17
@glepage:matrix.orgGaétan LepageYes, compiling on the fly is the core spirit of tinygrad.15:47:06
@ss:someonex.netSomeoneSerge (back on matrix) Trying to compose backendStdenv with ccacheStdenv 🙃 17:07:51
@ss:someonex.netSomeoneSerge (back on matrix)
In reply to @ss:someonex.net
Trying to compose backendStdenv with ccacheStdenv 🙃
callPackage is a blessing and a curse
17:50:29
@ss:someonex.netSomeoneSerge (back on matrix)It works with a bit of copypaste though17:50:43
@ss:someonex.netSomeoneSerge (back on matrix) But has anyone run into weird PermissionDenied errors with ccache? the directory is visible in the sandbox and owned by nixbld group and id seemst o match... 17:57:47
@kaya:catnip.eekaya 𖤐 changed their profile picture.19:36:06
9 Oct 2024
@john:friendsgiv.ingjohn joined the room.01:20:41

Show newer messages


Back to Room ListRoom Version: 9