Skip to content

python3Packages.torch: add libnvrtc to torch's runpath - #315694

Merged
SomeoneSerge merged 2 commits into
NixOS:masterfrom
breakds:PR/breakds/fix/python3Packages.torch/libnvrtc
Jun 12, 2024
Merged

SomeoneSerge merged 2 commits into
NixOS:masterfrom
breakds:PR/breakds/fix/python3Packages.torch/libnvrtc

Conversation

@breakds

@breakds breakds commented May 29, 2024

Copy link
Copy Markdown
Contributor

Description of changes

Aim bandage and work around #296179

This is a temporary solution before #297590 is ready. Many modern machine learning models will not be able to run if this is not fixed. This fix is based on @SomeoneSerge's SomeoneSerge/dust3r.nix@8715f78

The same fix has been tested here: nixvital/ml-pkgs@518e76b and I can verify it resolves the issue.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label May 29, 2024
@breakds

breakds commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

Sending this out to get some preview from the reviewers. Also some questions:

@SomeoneSerge: Should I apply the same change to bin.nix as well? And what is the best way to test this PR? Currently I have already verified it in my repo, but not this exact PR.

@ofborg
ofborg Bot requested review from teh, thoughtpolice and tscholak May 29, 2024 19:14
@ofborg ofborg Bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. labels May 29, 2024
@siraben

siraben commented May 30, 2024

Copy link
Copy Markdown
Member

Result of nixpkgs-review pr 315694 run on x86_64-linux 1

62 packages marked as broken and skipped:
  • khoj
  • khoj.dist
  • piper-train
  • piper-train.dist
  • python311Packages.bambi
  • python311Packages.bambi.dist
  • python311Packages.elegy
  • python311Packages.elegy.dist
  • python311Packages.farm-haystack
  • python311Packages.farm-haystack.dist
  • python311Packages.openllm
  • python311Packages.openllm.dist
  • python311Packages.pymanopt
  • python311Packages.pymanopt.dist
  • python311Packages.stytra
  • python311Packages.stytra.dist
  • python311Packages.treex
  • python311Packages.treex.dist
  • python311Packages.vllm
  • python311Packages.vllm.dist
  • python312Packages.argos-translate-files
  • python312Packages.argos-translate-files.dist
  • python312Packages.argostranslate
  • python312Packages.argostranslate.dist
  • python312Packages.ctranslate2
  • python312Packages.ctranslate2.dist
  • python312Packages.farm-haystack
  • python312Packages.farm-haystack.dist
  • python312Packages.faster-whisper
  • python312Packages.faster-whisper.dist
  • python312Packages.mayavi
  • python312Packages.mayavi.dist
  • python312Packages.mmcv
  • python312Packages.mmcv.dist
  • python312Packages.mmengine
  • python312Packages.mmengine.dist
  • python312Packages.pettingzoo
  • python312Packages.pettingzoo.dist
  • python312Packages.pymanopt
  • python312Packages.pymanopt.dist
  • python312Packages.pytorch-lightning
  • python312Packages.pytorch-lightning.dist
  • python312Packages.rising
  • python312Packages.rising.dist
  • python312Packages.rlcard
  • python312Packages.rlcard.dist
  • python312Packages.tensordict
  • python312Packages.tensordict.dist
  • python312Packages.torchmetrics
  • python312Packages.torchmetrics.dist
  • python312Packages.torchrl
  • python312Packages.torchrl.dist
  • python312Packages.torchsnapshot
  • python312Packages.torchsnapshot.dist
  • python312Packages.translatehtml
  • python312Packages.translatehtml.dist
  • rocmPackages.mivisionx
  • rocmPackages.mivisionx-cpu
  • rocmPackages.mivisionx-hip
  • rocmPackages_6.mivisionx
  • rocmPackages_6.mivisionx-cpu
  • rocmPackages_6.mivisionx-hip
619 packages failed to build:
  • backgroundremover
  • backgroundremover.dist
  • easyocr (python311Packages.easyocr)
  • easyocr.dist (python311Packages.easyocr.dist)
  • libretranslate (python311Packages.libretranslate)
  • libretranslate.dist (python311Packages.libretranslate.dist)
  • openai-whisper (python311Packages.openai-whisper)
  • openai-whisper.dist (python311Packages.openai-whisper.dist)
  • opensplat
  • opensplatWithCuda
  • pianotrans
  • pianotrans.dist
  • private-gpt
  • private-gpt.dist
  • python311Packages.accelerate
  • python311Packages.accelerate.dist
  • python311Packages.albumentations
  • python311Packages.albumentations.dist
  • python311Packages.apptools
  • python311Packages.apptools.dist
  • python311Packages.apricot-select
  • python311Packages.apricot-select.dist
  • python311Packages.argos-translate-files
  • python311Packages.argos-translate-files.dist
  • python311Packages.argostranslate
  • python311Packages.argostranslate.dist
  • python311Packages.arviz
  • python311Packages.arviz.dist
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.atomman
  • python311Packages.atomman.dist
  • python311Packages.attacut
  • python311Packages.attacut.dist
  • python311Packages.ax
  • python311Packages.ax.dist
  • python311Packages.bitsandbytes
  • python311Packages.bitsandbytes.dist
  • python311Packages.blosc2
  • python311Packages.blosc2.dist
  • python311Packages.botorch
  • python311Packages.botorch.dist
  • python311Packages.clarifai
  • python311Packages.clarifai.dist
  • python311Packages.clean-fid
  • python311Packages.clean-fid.dist
  • python311Packages.cleanlab
  • python311Packages.cleanlab.dist
  • python311Packages.clip
  • python311Packages.clip-anytorch
  • python311Packages.clip-anytorch.dist
  • python311Packages.clip.dist
  • python311Packages.compressai
  • python311Packages.compressai.dist
  • python311Packages.ctranslate2
  • python311Packages.ctranslate2.dist
  • python311Packages.dalle-mini
  • python311Packages.dalle-mini.dist
  • python311Packages.dctorch
  • python311Packages.dctorch.dist
  • python311Packages.deepdish
  • python311Packages.deepdish.dist
  • python311Packages.deepwave
  • python311Packages.deepwave.dist
  • python311Packages.detectron2
  • python311Packages.detectron2.dist
  • python311Packages.diffusers
  • python311Packages.diffusers.dist
  • python311Packages.effdet
  • python311Packages.effdet.dist
  • python311Packages.envisage
  • python311Packages.envisage.dist
  • python311Packages.experiment-utilities
  • python311Packages.experiment-utilities.dist
  • python311Packages.ezyrb
  • python311Packages.ezyrb.dist
  • python311Packages.facenet-pytorch
  • python311Packages.facenet-pytorch.dist
  • python311Packages.fairscale
  • python311Packages.fairscale.dist
  • python311Packages.fastai
  • python311Packages.fastai.dist
  • python311Packages.faster-whisper
  • python311Packages.faster-whisper.dist
  • python311Packages.ffcv
  • python311Packages.ffcv.dist
  • python311Packages.flammkuchen
  • python311Packages.flammkuchen.dist
  • python311Packages.flyingsquid
  • python311Packages.flyingsquid.dist
  • python311Packages.funsor
  • python311Packages.funsor.dist
  • python311Packages.fvcore
  • python311Packages.fvcore.dist
  • python311Packages.gpytorch
  • python311Packages.gpytorch.dist
  • python311Packages.grad-cam
  • python311Packages.grad-cam.dist
  • python311Packages.gradio
  • python311Packages.gradio-client
  • python311Packages.gradio-client.dist
  • python311Packages.gradio-pdf
  • python311Packages.gradio-pdf.dist
  • python311Packages.gradio.dist
  • python311Packages.guidance
  • python311Packages.guidance.dist
  • python311Packages.ignite
  • python311Packages.ignite.dist
  • python311Packages.imagededup
  • python311Packages.imagededup.dist
  • python311Packages.imgcat
  • python311Packages.imgcat.dist
  • python311Packages.insightface
  • python311Packages.insightface.dist
  • python311Packages.invisible-watermark
  • python311Packages.invisible-watermark.dist
  • python311Packages.iopath
  • python311Packages.iopath.dist
  • python311Packages.islpy
  • python311Packages.islpy.dist
  • python311Packages.julius
  • python311Packages.julius.dist
  • python311Packages.k-diffusion
  • python311Packages.k-diffusion.dist
  • python311Packages.kornia
  • python311Packages.kornia.dist
  • python311Packages.layoutparser
  • python311Packages.layoutparser.dist
  • python311Packages.linear-operator
  • python311Packages.linear-operator.dist
  • python311Packages.lion-pytorch
  • python311Packages.lion-pytorch.dist
  • python311Packages.llama-index
  • python311Packages.llama-index-agent-openai
  • python311Packages.llama-index-agent-openai.dist
  • python311Packages.llama-index-cli
  • python311Packages.llama-index-cli.dist
  • python311Packages.llama-index-core
  • python311Packages.llama-index-core.dist
  • python311Packages.llama-index-embeddings-gemini
  • python311Packages.llama-index-embeddings-gemini.dist
  • python311Packages.llama-index-embeddings-google
  • python311Packages.llama-index-embeddings-google.dist
  • python311Packages.llama-index-embeddings-huggingface
  • python311Packages.llama-index-embeddings-huggingface.dist
  • python311Packages.llama-index-embeddings-ollama
  • python311Packages.llama-index-embeddings-ollama.dist
  • python311Packages.llama-index-embeddings-openai
  • python311Packages.llama-index-embeddings-openai.dist
  • python311Packages.llama-index-graph-stores-nebula
  • python311Packages.llama-index-graph-stores-nebula.dist
  • python311Packages.llama-index-graph-stores-neo4j
  • python311Packages.llama-index-graph-stores-neo4j.dist
  • python311Packages.llama-index-graph-stores-neptune
  • python311Packages.llama-index-graph-stores-neptune.dist
  • python311Packages.llama-index-indices-managed-llama-cloud
  • python311Packages.llama-index-indices-managed-llama-cloud.dist
  • python311Packages.llama-index-legacy
  • python311Packages.llama-index-legacy.dist
  • python311Packages.llama-index-llms-ollama
  • python311Packages.llama-index-llms-ollama.dist
  • python311Packages.llama-index-llms-openai
  • python311Packages.llama-index-llms-openai-like
  • python311Packages.llama-index-llms-openai-like.dist
  • python311Packages.llama-index-llms-openai.dist
  • python311Packages.llama-index-multi-modal-llms-openai
  • python311Packages.llama-index-multi-modal-llms-openai.dist
  • python311Packages.llama-index-program-openai
  • python311Packages.llama-index-program-openai.dist
  • python311Packages.llama-index-question-gen-openai
  • python311Packages.llama-index-question-gen-openai.dist
  • python311Packages.llama-index-readers-database
  • python311Packages.llama-index-readers-database.dist
  • python311Packages.llama-index-readers-file
  • python311Packages.llama-index-readers-file.dist
  • python311Packages.llama-index-readers-json
  • python311Packages.llama-index-readers-json.dist
  • python311Packages.llama-index-readers-llama-parse
  • python311Packages.llama-index-readers-llama-parse.dist
  • python311Packages.llama-index-readers-s3
  • python311Packages.llama-index-readers-s3.dist
  • python311Packages.llama-index-readers-twitter
  • python311Packages.llama-index-readers-twitter.dist
  • python311Packages.llama-index-readers-txtai
  • python311Packages.llama-index-readers-txtai.dist
  • python311Packages.llama-index-readers-weather
  • python311Packages.llama-index-readers-weather.dist
  • python311Packages.llama-index-vector-stores-chroma
  • python311Packages.llama-index-vector-stores-chroma.dist
  • python311Packages.llama-index-vector-stores-google
  • python311Packages.llama-index-vector-stores-google.dist
  • python311Packages.llama-index-vector-stores-postgres
  • python311Packages.llama-index-vector-stores-postgres.dist
  • python311Packages.llama-index-vector-stores-qdrant
  • python311Packages.llama-index-vector-stores-qdrant.dist
  • python311Packages.llama-index.dist
  • python311Packages.llama-parse
  • python311Packages.llama-parse.dist
  • python311Packages.loopy
  • python311Packages.loopy.dist
  • python311Packages.manga-ocr
  • python311Packages.manga-ocr.dist
  • python311Packages.manifest-ml
  • python311Packages.manifest-ml.dist
  • python311Packages.mayavi
  • python311Packages.mayavi.dist
  • python311Packages.mdtraj
  • python311Packages.mdtraj.dist
  • python311Packages.mmcv
  • python311Packages.mmcv.dist
  • python311Packages.mmengine
  • python311Packages.mmengine.dist
  • python311Packages.monai
  • python311Packages.monai.dist
  • python311Packages.monty
  • python311Packages.monty.dist
  • python311Packages.nanobind
  • python311Packages.nanobind.dist
  • python311Packages.nianet
  • python311Packages.nianet.dist
  • python311Packages.numpyro
  • python311Packages.numpyro.dist
  • python311Packages.open-clip-torch
  • python311Packages.open-clip-torch.dist
  • python311Packages.optimum
  • python311Packages.optimum.dist
  • python311Packages.optuna
  • python311Packages.optuna.dist
  • python311Packages.outlines
  • python311Packages.outlines.dist
  • python311Packages.pandas-stubs
  • python311Packages.pandas-stubs.dist
  • python311Packages.pdfplumber
  • python311Packages.pdfplumber.dist
  • python311Packages.peft
  • python311Packages.peft.dist
  • python311Packages.pettingzoo
  • python311Packages.pettingzoo.dist
  • python311Packages.pgmpy
  • python311Packages.pgmpy.dist
  • python311Packages.piano-transcription-inference
  • python311Packages.piano-transcription-inference.dist
  • python311Packages.private-gpt
  • python311Packages.private-gpt.dist
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python311Packages.pyannote-pipeline
  • python311Packages.pyannote-pipeline.dist
  • python311Packages.pydmd
  • python311Packages.pydmd.dist
  • python311Packages.pymatgen
  • python311Packages.pymatgen.dist
  • python311Packages.pymc
  • python311Packages.pymc.dist
  • python311Packages.pyro-ppl
  • python311Packages.pyro-ppl.dist
  • python311Packages.pytorch-lightning
  • python311Packages.pytorch-lightning.dist
  • python311Packages.pytorch-metric-learning
  • python311Packages.pytorch-metric-learning.dist
  • python311Packages.pytorch-msssim
  • python311Packages.pytorch-msssim.dist
  • python311Packages.pytorch-pfn-extras
  • python311Packages.pytorch-pfn-extras.dist
  • python311Packages.rerun-sdk
  • python311Packages.rerun-sdk.dist
  • python311Packages.resize-right
  • python311Packages.resize-right.dist
  • python311Packages.rising
  • python311Packages.rising.dist
  • python311Packages.rlcard
  • python311Packages.rlcard.dist
  • python311Packages.rotary-embedding-torch
  • python311Packages.rotary-embedding-torch.dist
  • python311Packages.safetensors
  • python311Packages.safetensors.dist
  • python311Packages.sentence-transformers
  • python311Packages.sentence-transformers.dist
  • python311Packages.sfepy
  • python311Packages.sfepy.dist
  • python311Packages.shap
  • python311Packages.shap.dist
  • python311Packages.shimmy
  • python311Packages.shimmy.dist
  • python311Packages.skorch
  • python311Packages.skorch.dist
  • python311Packages.skrl
  • python311Packages.skrl.dist
  • python311Packages.slicer
  • python311Packages.slicer.dist
  • python311Packages.snorkel
  • python311Packages.snorkel.dist
  • python311Packages.spacy
  • python311Packages.spacy-loggers
  • python311Packages.spacy-loggers.dist
  • python311Packages.spacy-lookups-data
  • python311Packages.spacy-lookups-data.dist
  • python311Packages.spacy-transformers
  • python311Packages.spacy-transformers.dist
  • python311Packages.spacy.dist
  • python311Packages.speechbrain
  • python311Packages.speechbrain.dist
  • python311Packages.speechrecognition
  • python311Packages.speechrecognition.dist
  • python311Packages.stanza
  • python311Packages.stanza.dist
  • python311Packages.sumo
  • python311Packages.sumo.dist
  • python311Packages.tables
  • python311Packages.tables.dist
  • python311Packages.tensorboardx
  • python311Packages.tensorboardx.dist
  • python311Packages.tensordict
  • python311Packages.tensordict.dist
  • python311Packages.test-tube
  • python311Packages.test-tube.dist
  • python311Packages.textacy
  • python311Packages.textacy.dist
  • python311Packages.textnets
  • python311Packages.textnets.dist
  • python311Packages.timm
  • python311Packages.timm.dist
  • python311Packages.tiny-cuda-nn
  • python311Packages.tinygrad
  • python311Packages.tinygrad.dist
  • python311Packages.torch (python311Packages.torchWithoutCuda ,python311Packages.torchWithoutRocm)
  • python311Packages.torch-audiomentations
  • python311Packages.torch-audiomentations.dist
  • python311Packages.torch-pitch-shift
  • python311Packages.torch-pitch-shift.dist
  • python311Packages.torch-tb-profiler
  • python311Packages.torch-tb-profiler.dist
  • python311Packages.torch.cxxdev (python311Packages.torchWithoutCuda.cxxdev ,python311Packages.torchWithoutRocm.cxxdev)
  • python311Packages.torch.dev (python311Packages.torchWithoutCuda.dev ,python311Packages.torchWithoutRocm.dev)
  • python311Packages.torch.dist (python311Packages.torchWithoutCuda.dist ,python311Packages.torchWithoutRocm.dist)
  • python311Packages.torch.lib (python311Packages.torchWithoutCuda.lib ,python311Packages.torchWithoutRocm.lib)
  • python311Packages.torchWithCuda
  • python311Packages.torchWithCuda.cxxdev
  • python311Packages.torchWithCuda.dev
  • python311Packages.torchWithCuda.dist
  • python311Packages.torchWithCuda.lib
  • python311Packages.torchWithRocm
  • python311Packages.torchWithRocm.cxxdev
  • python311Packages.torchWithRocm.dev
  • python311Packages.torchWithRocm.dist
  • python311Packages.torchWithRocm.lib
  • python311Packages.torchaudio
  • python311Packages.torchaudio.dist
  • python311Packages.torchdiffeq
  • python311Packages.torchdiffeq.dist
  • python311Packages.torchinfo
  • python311Packages.torchinfo.dist
  • python311Packages.torchio
  • python311Packages.torchio.dist
  • python311Packages.torchlibrosa
  • python311Packages.torchlibrosa.dist
  • python311Packages.torchmetrics
  • python311Packages.torchmetrics.dist
  • python311Packages.torchrl
  • python311Packages.torchrl.dist
  • python311Packages.torchsde
  • python311Packages.torchsde.dist
  • python311Packages.torchsnapshot
  • python311Packages.torchsnapshot.dist
  • python311Packages.torchvision
  • python311Packages.torchvision.dist
  • python311Packages.trainer
  • python311Packages.trainer.dist
  • python311Packages.transformers
  • python311Packages.transformers.dist
  • python311Packages.translatehtml
  • python311Packages.translatehtml.dist
  • python311Packages.ttach
  • python311Packages.ttach.dist
  • python311Packages.txtai
  • python311Packages.txtai.dist
  • python311Packages.vqgan-jax
  • python311Packages.vqgan-jax.dist
  • python311Packages.wandb
  • python311Packages.wandb.dist
  • python311Packages.webdataset
  • python311Packages.webdataset.dist
  • python311Packages.xformers
  • python311Packages.xformers.dist
  • python312Packages.accelerate
  • python312Packages.accelerate.dist
  • python312Packages.albumentations
  • python312Packages.albumentations.dist
  • python312Packages.apptools
  • python312Packages.apptools.dist
  • python312Packages.apricot-select
  • python312Packages.apricot-select.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.atomman
  • python312Packages.atomman.dist
  • python312Packages.attacut
  • python312Packages.attacut.dist
  • python312Packages.ax
  • python312Packages.ax.dist
  • python312Packages.bitsandbytes
  • python312Packages.bitsandbytes.dist
  • python312Packages.blosc2
  • python312Packages.blosc2.dist
  • python312Packages.botorch
  • python312Packages.botorch.dist
  • python312Packages.clean-fid
  • python312Packages.clean-fid.dist
  • python312Packages.clip
  • python312Packages.clip-anytorch
  • python312Packages.clip-anytorch.dist
  • python312Packages.clip.dist
  • python312Packages.compressai
  • python312Packages.compressai.dist
  • python312Packages.dctorch
  • python312Packages.dctorch.dist
  • python312Packages.deepdish
  • python312Packages.deepdish.dist
  • python312Packages.deepwave
  • python312Packages.deepwave.dist
  • python312Packages.detectron2
  • python312Packages.detectron2.dist
  • python312Packages.diffusers
  • python312Packages.diffusers.dist
  • python312Packages.easyocr
  • python312Packages.easyocr.dist
  • python312Packages.effdet
  • python312Packages.effdet.dist
  • python312Packages.envisage
  • python312Packages.envisage.dist
  • python312Packages.experiment-utilities
  • python312Packages.experiment-utilities.dist
  • python312Packages.ezyrb
  • python312Packages.ezyrb.dist
  • python312Packages.facenet-pytorch
  • python312Packages.facenet-pytorch.dist
  • python312Packages.fairscale
  • python312Packages.fairscale.dist
  • python312Packages.ffcv
  • python312Packages.ffcv.dist
  • python312Packages.flammkuchen
  • python312Packages.flammkuchen.dist
  • python312Packages.flyingsquid
  • python312Packages.flyingsquid.dist
  • python312Packages.funsor
  • python312Packages.funsor.dist
  • python312Packages.fvcore
  • python312Packages.fvcore.dist
  • python312Packages.gpytorch
  • python312Packages.gpytorch.dist
  • python312Packages.grad-cam
  • python312Packages.grad-cam.dist
  • python312Packages.gradio
  • python312Packages.gradio-client
  • python312Packages.gradio-client.dist
  • python312Packages.gradio-pdf
  • python312Packages.gradio-pdf.dist
  • python312Packages.gradio.dist
  • python312Packages.guidance
  • python312Packages.guidance.dist
  • python312Packages.ignite
  • python312Packages.ignite.dist
  • python312Packages.imagededup
  • python312Packages.imagededup.dist
  • python312Packages.insightface
  • python312Packages.insightface.dist
  • python312Packages.invisible-watermark
  • python312Packages.invisible-watermark.dist
  • python312Packages.iopath
  • python312Packages.iopath.dist
  • python312Packages.julius
  • python312Packages.julius.dist
  • python312Packages.kornia
  • python312Packages.kornia.dist
  • python312Packages.layoutparser
  • python312Packages.layoutparser.dist
  • python312Packages.linear-operator
  • python312Packages.linear-operator.dist
  • python312Packages.lion-pytorch
  • python312Packages.lion-pytorch.dist
  • python312Packages.manifest-ml
  • python312Packages.manifest-ml.dist
  • python312Packages.mdtraj
  • python312Packages.mdtraj.dist
  • python312Packages.monty
  • python312Packages.monty.dist
  • python312Packages.nianet
  • python312Packages.nianet.dist
  • python312Packages.numpyro
  • python312Packages.numpyro.dist
  • python312Packages.open-clip-torch
  • python312Packages.open-clip-torch.dist
  • python312Packages.openai-whisper
  • python312Packages.openai-whisper.dist
  • python312Packages.optimum
  • python312Packages.optimum.dist
  • python312Packages.optuna
  • python312Packages.optuna.dist
  • python312Packages.outlines
  • python312Packages.outlines.dist
  • python312Packages.pandas-stubs
  • python312Packages.pandas-stubs.dist
  • python312Packages.pdfplumber
  • python312Packages.pdfplumber.dist
  • python312Packages.peft
  • python312Packages.peft.dist
  • python312Packages.pgmpy
  • python312Packages.pgmpy.dist
  • python312Packages.piano-transcription-inference
  • python312Packages.piano-transcription-inference.dist
  • python312Packages.pyannote-pipeline
  • python312Packages.pyannote-pipeline.dist
  • python312Packages.pydmd
  • python312Packages.pydmd.dist
  • python312Packages.pymatgen
  • python312Packages.pymatgen.dist
  • python312Packages.pyro-ppl
  • python312Packages.pyro-ppl.dist
  • python312Packages.pytorch-metric-learning
  • python312Packages.pytorch-metric-learning.dist
  • python312Packages.pytorch-msssim
  • python312Packages.pytorch-msssim.dist
  • python312Packages.pytorch-pfn-extras
  • python312Packages.pytorch-pfn-extras.dist
  • python312Packages.rerun-sdk
  • python312Packages.rerun-sdk.dist
  • python312Packages.resize-right
  • python312Packages.resize-right.dist
  • python312Packages.safetensors
  • python312Packages.safetensors.dist
  • python312Packages.sentence-transformers
  • python312Packages.sentence-transformers.dist
  • python312Packages.sfepy
  • python312Packages.sfepy.dist
  • python312Packages.shap
  • python312Packages.shap.dist
  • python312Packages.skorch
  • python312Packages.skorch.dist
  • python312Packages.slicer
  • python312Packages.slicer.dist
  • python312Packages.snorkel
  • python312Packages.snorkel.dist
  • python312Packages.speechbrain
  • python312Packages.speechbrain.dist
  • python312Packages.speechrecognition
  • python312Packages.speechrecognition.dist
  • python312Packages.stanza
  • python312Packages.stanza.dist
  • python312Packages.sumo
  • python312Packages.sumo.dist
  • python312Packages.tables
  • python312Packages.tables.dist
  • python312Packages.tensorboardx
  • python312Packages.tensorboardx.dist
  • python312Packages.test-tube
  • python312Packages.test-tube.dist
  • python312Packages.timm
  • python312Packages.timm.dist
  • python312Packages.tiny-cuda-nn
  • python312Packages.tinygrad
  • python312Packages.tinygrad.dist
  • python312Packages.torch (python312Packages.torchWithoutCuda ,python312Packages.torchWithoutRocm)
  • python312Packages.torch-audiomentations
  • python312Packages.torch-audiomentations.dist
  • python312Packages.torch-pitch-shift
  • python312Packages.torch-pitch-shift.dist
  • python312Packages.torch-tb-profiler
  • python312Packages.torch-tb-profiler.dist
  • python312Packages.torch.cxxdev (python312Packages.torchWithoutCuda.cxxdev ,python312Packages.torchWithoutRocm.cxxdev)
  • python312Packages.torch.dev (python312Packages.torchWithoutCuda.dev ,python312Packages.torchWithoutRocm.dev)
  • python312Packages.torch.dist (python312Packages.torchWithoutCuda.dist ,python312Packages.torchWithoutRocm.dist)
  • python312Packages.torch.lib (python312Packages.torchWithoutCuda.lib ,python312Packages.torchWithoutRocm.lib)
  • python312Packages.torchWithCuda
  • python312Packages.torchWithCuda.cxxdev
  • python312Packages.torchWithCuda.dev
  • python312Packages.torchWithCuda.dist
  • python312Packages.torchWithCuda.lib
  • python312Packages.torchWithRocm
  • python312Packages.torchWithRocm.cxxdev
  • python312Packages.torchWithRocm.dev
  • python312Packages.torchWithRocm.dist
  • python312Packages.torchWithRocm.lib
  • python312Packages.torchaudio
  • python312Packages.torchaudio.dist
  • python312Packages.torchdiffeq
  • python312Packages.torchdiffeq.dist
  • python312Packages.torchinfo
  • python312Packages.torchinfo.dist
  • python312Packages.torchio
  • python312Packages.torchio.dist
  • python312Packages.torchlibrosa
  • python312Packages.torchlibrosa.dist
  • python312Packages.torchsde
  • python312Packages.torchsde.dist
  • python312Packages.torchvision
  • python312Packages.torchvision.dist
  • python312Packages.trainer
  • python312Packages.trainer.dist
  • python312Packages.transformers
  • python312Packages.transformers.dist
  • python312Packages.ttach
  • python312Packages.ttach.dist
  • python312Packages.txtai
  • python312Packages.txtai.dist
  • python312Packages.webdataset
  • python312Packages.webdataset.dist
  • python312Packages.xformers
  • python312Packages.xformers.dist
  • rclip
  • rclip.dist
  • rocmPackages_5.mivisionx (rocmPackages_5.mivisionx-hip)
  • rocmPackages_5.mivisionx-cpu
  • rocmPackages_5.mivisionx-opencl
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
  • witnessme
  • witnessme.dist
  • wyoming-faster-whisper
  • wyoming-faster-whisper.dist

@SomeoneSerge

Copy link
Copy Markdown
Contributor

Should I apply the same change to bin.nix as well

Yes, IIRC it suffered from the same problem

And what is the best way to test this PR?

I think I ran something like torch.randn(10, 10).to("cuda").det().item() with and without the patch. Would be nice to add something of the sort to passthru (gpu) tests

619 packages failed to build:

@siraben I presume this was just a fluke?:)

@breakds

breakds commented May 31, 2024

Copy link
Copy Markdown
Contributor Author

I tried to run nixpkgs-review but my server crashed after a few hours. Let me try again.

@breakds

breakds commented May 31, 2024

Copy link
Copy Markdown
Contributor Author

I think I ran something like torch.randn(10, 10).to("cuda").det().item()

Will do

Would be nice to add something of the sort to passthru (gpu) tests

Sorry I do not quite follow. Is this a way to add tests that can be run manually but not triggered automatically?

Thanks!

@breakds
breakds force-pushed the PR/breakds/fix/python3Packages.torch/libnvrtc branch 2 times, most recently from 2028eec to 2dbfc9d Compare June 2, 2024 05:29
@breakds

breakds commented Jun 2, 2024

Copy link
Copy Markdown
Contributor Author

I have manually tested the commit following @SomeoneSerge's suggestion.

With the commit:

Python 3.11.9 (main, Apr  2 2024, 08:25:04) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.randn(10, 10).to("cuda").det().item()
-1625.952880859375
>>>

Without the commit:

Python 3.11.9 (main, Apr  2 2024, 08:25:04) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.randn(10, 10).to("cuda").det().item()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Error in dlopen for library libnvrtc.so.12and libnvrtc-26bfb51d.so.12

@SomeoneSerge SomeoneSerge Jun 2, 2024 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be wrapped in optionals cudaSupport, otherwise the vanilla nixpkgs instance's torch would also depend on non-free cuda

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Will fix.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I don't think cudaSupport belongs here. THe reasoning for isLinux was that it's lazy (and not entirely correct) way of saying "postPatchelfPhase only makes sense on systems that use ELF". Not that it matters a whole lot, because I at least still hope to see a more generic hook introduced, which would allow removing ad hoc code from torch and other derivations

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So without cudaSupport here, my understanding is that for non-cuda build on Linux the hook is still going to perform the patch. Do you mean this is ok?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it'll just be a no-op when extraRunpaths is empty

@breakds

breakds commented Jun 7, 2024 •

Copy link
Copy Markdown
Contributor Author

I apologize for the delayed response. Got some acute illness. Let me update and test again.

Thanks a lot for the prompt review!

@breakds
breakds force-pushed the PR/breakds/fix/python3Packages.torch/libnvrtc branch from 2dbfc9d to 73ddfdc Compare June 8, 2024 17:48
@breakds

breakds commented Jun 8, 2024

Copy link
Copy Markdown
Contributor Author

Addressed comments and verified again. PTAL.

@SomeoneSerge

Copy link
Copy Markdown
Contributor

@ofborg build python311Packages.torch python312Packages.torch

@breakds

breakds commented Jun 12, 2024

Copy link
Copy Markdown
Contributor Author

Seems that the checks have passed. I am wondering if there's anything else needed from my side to do at this moment?

Thanks!

@SomeoneSerge

Copy link
Copy Markdown
Contributor

@breakds I guess I'll have to rebase/squash to fix the commit message

@SomeoneSerge
SomeoneSerge merged commit 4b755b0 into NixOS:master Jun 12, 2024
@SomeoneSerge

Copy link
Copy Markdown
Contributor

Thank you @breakds

@SomeoneSerge

Copy link
Copy Markdown
Contributor

If you feel up to it, maybe you could now rewrite autoFixElfFiles like the other PR started... that would be a rather laborious chore however

@breakds
breakds deleted the PR/breakds/fix/python3Packages.torch/libnvrtc branch June 12, 2024 22:02
@breakds

breakds commented Jun 12, 2024

Copy link
Copy Markdown
Contributor Author

If you feel up to it, maybe you could now rewrite autoFixElfFiles like the other PR started... that would be a rather laborious chore however

Got it. I will probably need to read and learn more before I can take that, but definitely want to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants