!fXpAvneDgyJuYMZSwO:nixos.org

Nix Data Science

218 Members
54 Servers

Load older messages


SenderMessageTime
30 May 2024
@cyanlight:matrix.orgcyanlight joined the room.10:26:35
2 Jun 2024
@aloisw:kde.org@aloisw:kde.org set a profile picture.18:01:46
@aloisw:kde.org@aloisw:kde.org changed their profile picture.18:23:55
4 Jun 2024
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius (DECT: 7248) to raitobezarius.11:14:58
5 Jun 2024
@javier.fuentes:matrix.org@javier.fuentes:matrix.org left the room.13:46:35
11 Jun 2024
@h0n3yb4dg3r:matrix.org@h0n3yb4dg3r:matrix.org left the room.19:49:58
19 Jun 2024
@maupind:matrix.orgmaupindAny academics using NixOS as a method for reproducibility of analysis? I'm interested to see what your processes are and curious if there are any funding opportunities that can be used to develop Nix in this area21:31:03
@jb:vk3.wtfjbedo
In reply to @maupind:matrix.org
Any academics using NixOS as a method for reproducibility of analysis? I'm interested to see what your processes are and curious if there are any funding opportunities that can be used to develop Nix in this area
i use nix extensively for reproducibility, not so much nixos
21:54:31
@jb:vk3.wtfjbedoi mean i run it, but not on institute/university compute21:55:08
21 Jun 2024
@wilhelmvon:matrix.org@wilhelmvon:matrix.org joined the room.09:15:55
22 Jun 2024
@lotte:chir.rs@lotte:chir.rs left the room.19:23:12
28 Jun 2024
@benoitdr:matrix.orgbenoitdrAnyone interested to work with me on a derivation for llama-cpp-python ? I had a working solution a few months ago but it's not working anymore with the latest package version.12:09:12
@benoitdr:matrix.orgbenoitdrCurrently facing this problem : "fatal error: nv/target: No such file or directory"12:53:42
29 Jun 2024
@maka_77x:matrix.orgmaka_77x joined the room.00:48:44
30 Jun 2024
@brodriguesco:matrix.orgBruno Rodrigueshas one of you packaged positron ?13:07:15
@brodriguesco:matrix.orgBruno Rodrigues* has one of you packaged positron ? https://github.com/posit-dev/positron/tree/main?tab=readme-ov-file#positron-- 13:07:40
@benoitdr:matrix.orgbenoitdr

I'm making some progress, now I can build llama-cpp-python with cuda, but unfortunately at runtime, the python app doesn't see the GPU ๐Ÿ˜ญ
these lines from llama.cpp derivation caught my attention :

  # It's necessary to consistently use backendStdenv when building with CUDA support,
  # otherwise we get libstdc++ errors downstream.
  # cuda imposes an upper bound on the gcc version, e.g. the latest gcc compatible with cudaPackages_11 is gcc11
  effectiveStdenv = if cudaSupport then cudaPackages.backendStdenv else stdenv;
....
effectiveStdenv.mkDerivation (finalAttrs: {
....

in my case I'm not making a derivation but I'm building a python package using pkgs.python311.pkgs.buildPythonPackage
could it be the reason why gpu/cuda is not used at runtime ?

20:15:11
@ss:someonex.netSomeoneSerge (utc+3)

not making a derivation b

buildPythonPackage is a wrapper around mkDerivation

20:33:02
@ss:someonex.netSomeoneSerge (utc+3)

python app doesn't see the GPU

Usually that means you need to add a DT_RUNPATH or LD_LIBRARY_PATH somewhere, pointing at ${addDriverRunpath.driverLink}/lib

20:33:36
1 Jul 2024
@polivier:matrix.orgPhilippe Olivier joined the room.13:27:47
@benoitdr:matrix.orgbenoitdr
In reply to @ss:someonex.net

python app doesn't see the GPU

Usually that means you need to add a DT_RUNPATH or LD_LIBRARY_PATH somewhere, pointing at ${addDriverRunpath.driverLink}/lib

Could you please help me on the syntax ? The closest I can get is below and has no effect (in my shellHook) :
ยดยดยด
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [
pkgs.addDriverRunpath.driverLink
]}
export DT_RUNPATH=${pkgs.lib.makeLibraryPath [
pkgs.addDriverRunpath.driverLink
]}
ยดยดยด
13:30:16
@benoitdr:matrix.orgbenoitdr
In reply to @ss:someonex.net

python app doesn't see the GPU

Usually that means you need to add a DT_RUNPATH or LD_LIBRARY_PATH somewhere, pointing at ${addDriverRunpath.driverLink}/lib

*

Could you please help me on the syntax ? The closest I can get is below and has no effect (in my shellHook) :

export LD\_LIBRARY\_PATH=${pkgs.lib.makeLibraryPath \[
pkgs.addDriverRunpath.driverLink
\]}
export DT\_RUNPATH=${pkgs.lib.makeLibraryPath \[
pkgs.addDriverRunpath.driverLink
\]}
13:30:45
@benoitdr:matrix.orgbenoitdr *

Could you please help me on the syntax ? The closest I can get is below and has no effect (in my shellHook) :

export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [
pkgs.addDriverRunpath.driverLink
]}
export DT_RUNPATH=${pkgs.lib.makeLibraryPath [
pkgs.addDriverRunpath.driverLink
]}
13:31:36
@ss:someonex.netSomeoneSerge (utc+3)DT_RUNPATH is not an environment variable, but the first export seems like it should work13:36:18
@benoitdr:matrix.orgbenoitdrwell it doesn't ..13:37:16
@ss:someonex.netSomeoneSerge (utc+3)Well now it's a matter of finding out how exactly it doesn't work:)13:41:17
@ss:someonex.netSomeoneSerge (utc+3) Run the program with LD_DEBUG=libs, search for mentions of libcuda 13:41:35
@ss:someonex.netSomeoneSerge (utc+3) ENsure that hardware.opengl.enable is set//run/opengl-driver/lib/libcuda.so exists 13:41:49
2 Jul 2024
@brodriguesco:matrix.orgBruno Rodrigues

I'm trying to package positron here is my attempt: https://github.com/b-rodrigues/nixpkgs/blob/positron/pkgs/by-name/po/positron/package.nix
but I get this error message when trying to build

b-rodrigues@localhost:~/Documents/github_repos/nixpkgs(master)$ nix-shell -I nixpkgs=. -p R rPackages.dplyr positron
this derivation will be built:
  /nix/store/qh59xjk5cz4dq44y0jixma219sr9xb0f-Positron-2024.06.1-27.drv
building '/nix/store/qh59xjk5cz4dq44y0jixma219sr9xb0f-Positron-2024.06.1-27.drv'...
Running phase: unpackPhase
tar: ./usr/share/positron/chrome-sandbox: Cannot change mode to rwsr-xr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
error: builder for '/nix/store/qh59xjk5cz4dq44y0jixma219sr9xb0f-Positron-2024.06.1-27.drv' failed with exit code 2;
       last 4 log lines:
       > Running phase: unpackPhase
       > tar: ./usr/share/positron/chrome-sandbox: Cannot change mode to rwsr-xr-x: Operation not permitted
       > tar: Exiting with failure status due to previous errors
       > dpkg-deb: error: tar subprocess returned error exit status 2
       For full logs, run 'nix log /nix/store/qh59xjk5cz4dq44y0jixma219sr9xb0f-Positron-2024.06.1-27.drv'.

08:58:35
@brodriguesco:matrix.orgBruno Rodriguesit's probably something simple that I'm missing08:58:52

Show newer messages


Back to Room ListRoom Version: 6