| 20 May 2025 |
connor (he/him) | SomeoneSerge (UTC+U[-12,12]): check out the latest commit on https://github.com/NixOS/nixpkgs/pull/406531, should have addressed everything we talked about this morning I still need to review yours, should be able to later today 🫠 | 17:48:26 |
SomeoneSerge (back on matrix) | I fell asleep after the 3rd coffee | 19:58:36 |
| 21 May 2025 |
Kevin Mittman (UTC-7) | arches 👀 | 01:40:13 |
connor (he/him) | I should be able to do the second half of the review on your PR tomorrow morning. Gonna try to be at work before 6:30 again. | 04:44:41 |
SomeoneSerge (back on matrix) | What's your opinion on this? | 13:36:17 |
| 23 May 2025 |
connor (he/him) | Okay hoping I get a sudden burst of productivity and get through my backlog | 12:29:14 |
SomeoneSerge (back on matrix) | connor (he/him) (UTC-7): I'm finally beginning to delete things! | 19:52:09 |
| 24 May 2025 |
ereslibre | Hi! If you have some time I have a couple PRs waiting review/merge:
- Allow to provide CSV files for Nvidia-ctk (fixes jetson devices): https://github.com/NixOS/nixpkgs/pull/401840
- Fix nvidia-ctk for the Nvidia docker runtime (deprecated): https://github.com/NixOS/nixpkgs/pull/407290
Thanks :) | 07:46:45 |
little_dude | Download x | 09:07:51 |
little_dude | Hello, this was a long time ago, but I'm finally back to trying to run ollama :D
saxpy doesn't work. I used this flake:
{
description = "CUDA saxpy test";
inputs.nixpkgs.url = "nixpkgs";
outputs =
{ self, nixpkgs }:
{
devShell.x86_64-linux =
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true; # Required for CUDA
};
in
pkgs.mkShell {
name = "cuda-saxpy-shell";
buildInputs = [
pkgs.cudaPackages.saxpy
pkgs.cudaPackages.cudatoolkit
];
shellHook = ''
export CUDA_PATH=${pkgs.cudatoolkit}
export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib"
export EXTRA_CCFLAGS="-I/usr/include"
# Should I set this?
# export LD_LIBRARY_PATH=${pkgs.cudaPackages.cudatoolkit.lib}/lib:$LD_LIBRARY_PATH
'';
};
};
}
I'm running in the same(?) initialization error I think (see the log file attached) for LD_DEBUG=libs saxpy.
The output of nvidia-smi:
{
description = "CUDA saxpy test";
inputs.nixpkgs.url = "nixpkgs";
outputs =
{ self, nixpkgs }:
{
devShell.x86_64-linux =
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true; # Required for CUDA
};
in
pkgs.mkShell {
name = "cuda-saxpy-shell";
buildInputs = [
pkgs.cudaPackages.saxpy
pkgs.cudaPackages.cudatoolkit
];
shellHook = ''
export CUDA_PATH=${pkgs.cudatoolkit}
export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib"
export EXTRA_CCFLAGS="-I/usr/include"
# Should I set this?
# export LD_LIBRARY_PATH=${pkgs.cudaPackages.cudatoolkit.lib}/lib:$LD_LIBRARY_PATH
'';
};
};
}
| 09:08:34 |
little_dude | * Hello, this was a long time ago, but I'm finally back to trying to run ollama :D
saxpy doesn't work. I used this flake:
{
description = "CUDA saxpy test";
inputs.nixpkgs.url = "nixpkgs";
outputs =
{ self, nixpkgs }:
{
devShell.x86_64-linux =
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true; # Required for CUDA
};
in
pkgs.mkShell {
name = "cuda-saxpy-shell";
buildInputs = [
pkgs.cudaPackages.saxpy
pkgs.cudaPackages.cudatoolkit
];
shellHook = ''
export CUDA_PATH=${pkgs.cudatoolkit}
export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib"
export EXTRA_CCFLAGS="-I/usr/include"
# Should I set this?
# export LD_LIBRARY_PATH=${pkgs.cudaPackages.cudatoolkit.lib}/lib:$LD_LIBRARY_PATH
'';
};
};
}
I'm running in the same(?) initialization error I think (see the log file attached) for LD_DEBUG=libs saxpy.
The output of nvidia-smi:
[little-dude@system76-laptop:~/cuda-tests]$ nvidia-smi
Sat May 24 11:08:06 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.144 Driver Version: 570.144 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4060 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 46C P0 590W / 115W | 12MiB / 8188MiB | 13% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 3706 G ...me-shell-48.1/bin/gnome-shell 2MiB |
+-----------------------------------------------------------------------------------------+
| 09:09:08 |
little_dude | * Hello, this was a long time ago, but I'm finally back to trying to run ollama :D
saxpy doesn't work. I used this flake:
{
description = "CUDA saxpy test";
inputs.nixpkgs.url = "nixpkgs";
outputs =
{ self, nixpkgs }:
{
devShell.x86_64-linux =
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true; # Required for CUDA
};
in
pkgs.mkShell {
name = "cuda-saxpy-shell";
buildInputs = [
pkgs.cudaPackages.saxpy
pkgs.cudaPackages.cudatoolkit
];
shellHook = ''
export CUDA_PATH=${pkgs.cudatoolkit}
export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib"
export EXTRA_CCFLAGS="-I/usr/include"
# Should I set this?
# export LD_LIBRARY_PATH=${pkgs.cudaPackages.cudatoolkit.lib}/lib:$LD_LIBRARY_PATH
'';
};
};
}
I'm running into the same(?) initialization error I think (see the log file attached) for LD_DEBUG=libs saxpy.
The output of nvidia-smi:
[little-dude@system76-laptop:~/cuda-tests]$ nvidia-smi
Sat May 24 11:08:06 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.144 Driver Version: 570.144 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4060 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 46C P0 590W / 115W | 12MiB / 8188MiB | 13% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 3706 G ...me-shell-48.1/bin/gnome-shell 2MiB |
+-----------------------------------------------------------------------------------------+
| 09:09:31 |
| 26 May 2025 |
connor (he/him) | Was basically bed ridden with exhaustion this weekend, starting to come back to life
Should be able to review changes to the CUDA lib PR today | 17:52:27 |
SomeoneSerge (back on matrix) | Anyone feel like bridging to irc?.. | 22:30:01 |
| 27 May 2025 |
connor (he/him) | Aaaaand I’m not gonna get a chance | 02:21:35 |
connor (he/him) | SomeoneSerge (UTC+U[-12,12]): you good for our usual weekly call in ~12h? | 02:22:06 |
connor (he/him) | Also, just got a ticket to NixCon so let me know if you’re going and want to catch up | 02:22:30 |
SomeoneSerge (back on matrix) | In reply to @connorbaker:matrix.org SomeoneSerge (UTC+U[-12,12]): you good for our usual weekly call in ~12h? Yes please! | 09:11:44 |
SomeoneSerge (back on matrix) | In reply to @connorbaker:matrix.org Also, just got a ticket to NixCon so let me know if you’re going and want to catch up Finally! You chose the most expensive nixcon in the eu I must say xD | 09:12:45 |
SomeoneSerge (back on matrix) | But yes I plan to be there | 09:12:58 |
SomeoneSerge (back on matrix) | Hmm the driver is loaded correctly from the impure location, but the error is rather unspecific 🤔
I 143 78774: calling init: /run/opengl-driver/lib/libcuda.so.1
...
161 CUDA error at cudaMalloc(&xDevice, N * sizeof(float)): initialization error
| 09:21:21 |
SomeoneSerge (back on matrix) |
# Should I set this?
No there's no need
| 09:21:57 |
SomeoneSerge (back on matrix) | Ah sorry, I saw at least one of the PRs (the runtime wrapper one) and was meaning to merge but then got confused by how it relates to the conversation in the issue | 09:25:55 |
ereslibre | thanks a lot! 🙏 | 11:46:46 |
little_dude | Yes :( Any suggestion to debug further? | 12:43:52 |
hexa | https://hydra.nix-community.org/eval/448541 | 20:34:35 |
hexa | lots of jobs lost, can anyone look into this? | 20:35:56 |
hexa | (stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute 'cudaLib' missing
at /nix/store/gzqv127zcha1gh0a3ib4k71mlw46nkyh-source/pkgs/top-level/release-cuda.nix:17:54:
16| lib = import ../../lib;
17| inherit (import ../development/cuda-modules/_cuda) cudaLib;
| ^
18| in\
| 20:36:36 |
hexa | cc connor (he/him) (UTC-7) | 20:37:04 |
connor (he/him) | Will take a look shortly, looks like a fixup mixed that one | 23:05:38 |