!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

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

Load older messages


SenderMessageTime
21 May 2024
@tpw_rules:matrix.orgtpw_rulesoh yes, it does, it was easy to set up. thanks all!21:08:52
22 May 2024
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) I use my laptop to ssh into nixos-desktop where I do most of my work 12:53:43
@glepage:matrix.orgGaétan Lepage Ok, I do the same, and then, your nixos-desktop has a few remote builders configured 12:56:19
@glepage:matrix.orgGaétan LepageIs it your intel machine that you linked above ?12:56:30
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)It is13:43:13
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)Each of the three desktops has the other two as a remote builder so they effectively share the same store, as I understand13:43:49
@glepage:matrix.orgGaétan LepageOk, thanks so much for answering my questions and providing all those details !14:50:14
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:26:09
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:28:22
@elonsroadster:matrix.orgcolonelpanic changed their display name from elonsroadster to colonelpanic.20:10:22
23 May 2024
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) Ugh finally made some more progress on https://github.com/NixOS/nixpkgs/pull/306172
Hopefully moving now to the “fix other derivations” stage because I’m mostly satisfied with the core logic
02:36:49
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) Updated https://gist.github.com/ConnorBaker/305b1aebd7ee74a258a616bbbd4dcd7b with a list of packages which use requireFile if that's helpful to anyone 13:36:53
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)

Gaétan Lepage: if you get a chance, could you patch python312Packages.qgrid? It needs distutils when building with python3.12 or later:

python3.12-qgrid> ModuleNotFoundError: No module named 'distutils'
14:28:27
@glepage:matrix.orgGaétan Lepage
In reply to @connorbaker:matrix.org

Gaétan Lepage: if you get a chance, could you patch python312Packages.qgrid? It needs distutils when building with python3.12 or later:

python3.12-qgrid> ModuleNotFoundError: No module named 'distutils'
Sure ! Done: https://github.com/NixOS/nixpkgs/pull/314010
14:43:58
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)

Would you mind also patching https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/svgelements/default.nix?

Maybe like the API for the tests changed (extra s)?

python3.12-svgelements> =================================== FAILURES ===================================
python3.12-svgelements> ___________ TestElementCubicBezierPoint.test_cubic_bounds_issue_220 ____________
python3.12-svgelements> [gw27] linux -- Python 3.12.3 /nix/store/c7ycrgwv039nqglbif98yggx211sdbcl-python3-3.12.3/bin/python3.12
python3.12-svgelements> self = <test.test_cubic_bezier.TestElementCubicBezierPoint testMethod=test_cubic_bounds_issue_220>
python3.12-svgelements>     def test_cubic_bounds_issue_220(self):
python3.12-svgelements>         p = Path(transform=Matrix(682.657124793113, 0.000000000003, -0.000000000003, 682.657124793113, 257913.248909660178, -507946.354527872754))
python3.12-svgelements>         p += CubicBezier(start=Point(-117.139521365,1480.99923469), control1=Point(-41.342266634,1505.62725567), control2=Point(40.3422666342,1505.62725567), end=Point(116.139521365,1480.99923469))
python3.12-svgelements>         bounds = p.bbox()
python3.12-svgelements> >       self.assertNotAlmostEquals(bounds[1], bounds[3], delta=100)
python3.12-svgelements> E       AttributeError: 'TestElementCubicBezierPoint' object has no attribute 'assertNotAlmostEquals'. Did you mean: 'assertNotAlmostEqual'?
python3.12-svgelements> test/test_cubic_bezier.py:82: AttributeError
python3.12-svgelements> ______________________ TestElementWrite.test_write_group _______________________
python3.12-svgelements> [gw20] linux -- Python 3.12.3 /nix/store/c7ycrgwv039nqglbif98yggx211sdbcl-python3-3.12.3/bin/python3.12
python3.12-svgelements> self = <test.test_write.TestElementWrite testMethod=test_write_group>
python3.12-svgelements>     def test_write_group(self):
python3.12-svgelements>         g = Group()
python3.12-svgelements> >       self.assertEquals(g.string_xml(), "<g />")
python3.12-svgelements> E       AttributeError: 'TestElementWrite' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
python3.12-svgelements> test/test_write.py:27: AttributeError
14:49:59
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)Oh there's a patch for it! https://github.com/meerk40t/svgelements/commit/23da98941a94cf1afed39c10750222ccfee73c9f14:50:30
@glepage:matrix.orgGaétan Lepage
In reply to @connorbaker:matrix.org
Oh there's a patch for it! https://github.com/meerk40t/svgelements/commit/23da98941a94cf1afed39c10750222ccfee73c9f
https://github.com/NixOS/nixpkgs/pull/314018
14:57:46
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)

Can you also take a look at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/gpuctypes/default.nix?

When I build it with cudaSupport = true it tries to run tests and fails (note that I've not set testCudaRuntime to true):

python3.12-gpuctypes> ERROR test/test_cuda.py::TestCUDADevice::test_device_count - RecursionError: maximum recursion depth exceeded
python3.12-gpuctypes> ERROR test/test_cuda.py::TestCUDADevice::test_malloc - RecursionError: maximum recursion depth exceeded
15:21:03
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) Maybe related -- looks like pytest's -k option can't be specified multiple times? I'm seeing behavior where the last value I provide for it is the one it uses 16:02:45
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)

I would suggest

  pytestFlagsArray =
    [ "-v" ]
    ++ lib.optionals (!testCudaRuntime) [ "--deselect=test/test_cuda.py::TestCUDADevice" ]
    ++ lib.optionals (!testRocmRuntime) [ "--deselect=test/test_hip.py::TestHIPDevice" ];
16:05:19
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)(Deselect can be specified multiple times: https://docs.pytest.org/en/latest/example/pythoncollection.html#deselect-tests-during-test-collection)16:05:44
@hexa:lossy.networkhexa (UTC+1)hm, can we get rid of these deprecations in 24.05?16:23:37
@hexa:lossy.networkhexa (UTC+1)
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
16:23:39
@hexa:lossy.networkhexa (UTC+1)they're not really actionable to the user16:24:05
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)Where are they coming from?16:29:52
@hexa:lossy.networkhexa (UTC+1)good question, let me check my nvidia bits in the config18:11:37
@hexa:lossy.networkhexa (UTC+1)
{ pkgs
, ...
}:

{
  nixpkgs.config.cudaSupport = true;

  hardware.opengl = {
    enable = true;
  };

  services.xserver.videoDrivers = [
    "nvidia"
  ];

  environment.systemPackages = with pkgs; [
    cudatoolkit
    nvtopPackages.nvidia
  ];
}
18:19:51
@hexa:lossy.networkhexa (UTC+1)so, nothing speical18:19:54
@hexa:lossy.networkhexa (UTC+1)tried the two packages, no trace18:20:00
@glepage:matrix.orgGaétan Lepage
In reply to @hexa:lossy.network
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
I also have those
22:07:01

Show newer messages


Back to Room ListRoom Version: 9