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

Fix cudatoolkit building on non-sandboxed systems #58113

Merged

Conversation

cdepillabout
Copy link
Member

@cdepillabout cdepillabout commented Mar 22, 2019

This fixes the cudatoolkit building on non-sandboxed system.

The cudatoolkit tests run each of the CUDA binaries as a small smoke
test just to make sure they all can at least somewhat run.

However, the cuda-gdb binary doesn't run correctly on non-sandboxed
systems because it picks up versions of Python from /usr/lib.

This PR excludes the cuda-gdb binary from these smoke tests so
cudatoolkit can be built again on non-sandboxed systems.

This PR is for #57939.

This doesn't fix the underlying issue of cuda-gdb not being able to run on non-sandboxed systems. That will hopefully come in a future PR. Note that cuda-gdb not being able to run doesn't affect the actual cuda libraries that are needed for building CUDA-enabled applications.

Once this is merged in, I'd also like to backport this to 19.03.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@cdepillabout
Copy link
Member Author

Pinging @knedlsepp.

@knedlsepp
Copy link
Member

knedlsepp commented Mar 22, 2019

I would rather we disable doInstallCheck until this is properly fixed.

This fixes cudatoolkit building on non-sandboxed system.

The cudatoolkit tests run each of the CUDA binaries as a small smoke
test just to make sure they all can at least somewhat run.

However, the `cuda-gdb` binary doesn't run correctly on non-sandboxed
systems because it picks up versions of Python from /usr/lib.

This PR disables the smoke tests for now.  They should be re-enabled
when we figure out how to make them work for cuda-gdb on non-sandboxed
systems.

This PR is for NixOS#57939.
@cdepillabout cdepillabout force-pushed the ignore-cuda-gdb-without-sandboxing branch from e1b994c to 54cc6ad Compare March 22, 2019 07:55
@cdepillabout
Copy link
Member Author

@knedlsepp I added commit 54cc6ad which does as you suggest. Now the install checks are disabled. I also added a comment about why it has been disabled.

@knedlsepp
Copy link
Member

Thx. @bendlas, could you have a look.

@bendlas bendlas merged commit 7942c79 into NixOS:master Mar 22, 2019
@bendlas
Copy link
Contributor

bendlas commented Mar 22, 2019

merged and backported

@knedlsepp
Copy link
Member

Thx

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

Successfully merging this pull request may close these issues.

None yet

4 participants