Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cudaPackages_jetson: rebase onto FindCUDAToolkit.cmake #5

Closed
wants to merge 28 commits into from

Conversation

SomeoneSerge
Copy link
Owner

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@SomeoneSerge SomeoneSerge changed the title Cuda packages jetson cmake cudaPackages_jetson: make FindCUDAToolkit.cmake work Jul 12, 2023
@SomeoneSerge SomeoneSerge changed the title cudaPackages_jetson: make FindCUDAToolkit.cmake work cudaPackages_jetson: rebase onto FindCUDAToolkit.cmake Jul 18, 2023
@SomeoneSerge
Copy link
Owner Author

95b270ed0f21359e5632966b245b22875c64dca3:

❯ nix build -f cross-jetson.nix -L cudaPackages.saxpy
❯ sudo nix store sign --key-file /... $(readlink -f result) --recursive
❯ nix copy --to ssh-ng://jetson-sergei.cs.aalto.fi ./result
someone@ubuntu:~$ LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/tegra /nix/store/sqz64qsr5pxi8y69m7a0xh0imbrhdzi4-saxpy-aarch64-unknown-linux-gnu-unstable-2023-07-11/bin/saxpy
Runtime version: 11040
Driver version: 11040
Max error: 0.000000
❯ nix run -f with-cuda.nix -L cudaPackages.saxpy
Runtime version: 11080
Driver version: 12020
Max error: 0.000000
❯ cat cross-jetson.nix
(import ./. {
  config.allowUnfree = true;
  config.cudaSupport = true;
  config.cudaCapabilities = [ "7.2" ];
  # config.cudaCapabilities = [ "8.6" ];
  overlays = [
    (final: prev: {
      cudaPackages = prev.cudaPackages_11_4.overrideScope' (cu-final: cu-prev: {
        cudaFlags = prev.pkgs.cudaPackages_jetson.cudaFlags;
        cuda_cudart = prev.cudaPackages_11_4.cuda_cudart.override { manifestAttribute = "linux-sbsa"; };
        manifestAttribute = if prev.pkgs.hostPlatform.system == "aarch64-linux" then "linux-aarch64" else null;
      });
      faiss = prev.faiss.override {
        useThrustSourceBuild = false;
      };
      pythonPackagesExtensions = [
        (py-final: py-prev: {
          torch = py-prev.torch.overridePythonAttrs (oldAttrs: { meta = oldAttrs.meta // { broken = false; }; });
        })
      ];
    })
  ];
}).pkgsCross.aarch64-multiplatform

SomeoneSerge pushed a commit that referenced this pull request Feb 22, 2024
Since ba83271 the build fails with

    applying patch /nix/store/46rxbbvl2l3mrxb50y9rzy7ahgx0lraj-d741901dddd731895346636c0d3556c6fa51fbe6.patch
    patching file tests/hazmat/primitives/test_aead.py
    Hunk #1 FAILED at 56.
    Hunk #2 FAILED at 197.
    Hunk #3 FAILED at 378.
    Hunk #4 FAILED at 525.
    Hunk #5 FAILED at 700.
    Hunk #6 FAILED at 844.
    6 out of 6 hunks FAILED -- saving rejects to file tests/hazmat/primitives/test_aead.py.rej
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant