-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: enable cross-compilation (take two) #279952
cudaPackages: enable cross-compilation (take two) #279952
Commits on Mar 26, 2024
-
gcc: link $lib/lib -> $lib/$targetConfig correctly and consistently
When native-compiling, gcc will install libraries into: /nix/store/...-$targetConfig-gcc-$version-lib/lib When cross-compiling, gcc will install libraries into: /nix/store/...-$targetConfig-gcc-$version-lib/$targetConfig When cross-compiling, we intended to create a link from $lib/lib to $lib/$targetConfig, so that downstream users can always safely assume that "${lib.getLib stdenv.cc.cc}/lib" is where the gcc libraries are, regardless of whether `stdenv.cc.cc` is a cross compiler or a native compiler. Unfortunately, there were two problems with how we were trying to create these links: 1. The link would be created only when `enableLibGccOutput==true` 2. The link was being created from the incorrect source `$lib/lib/lib` instead of `$lib/lib`. Both of these mistakes are my fault. This commit corrects them by creating the link using `ln -Ts` (which is more predictable) and by creating the link from `gcc/common/builder.nix` rather than from `gcc/common/libgcc.nix`.
Adam Joseph authored and Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for cbcc890 - Browse repository at this point
Copy the full SHA cbcc890View commit details -
cudaPackages: cross-compilation attempt 2
workaround bug in cross-compilation / meta.getExe cudaPackages.autoAddCudaCompatRunpathHook: correct meta.platforms reference cudaPackages.backendStdenv: use coreutils from buildPackages when cross-compiling
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for cbde122 - Browse repository at this point
Copy the full SHA cbde122View commit details -
cuda-modules/setup-hooks: introduce helper function and add comments …
…about callPackage
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for c86cead - Browse repository at this point
Copy the full SHA c86ceadView commit details -
cuda-modules/generic-builders/manifest: use hostTarget autoAddCudaCom…
…patRunpathHook
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 798c380 - Browse repository at this point
Copy the full SHA 798c380View commit details -
cuda-modules/cuda/overrides: introduce helper function and add commen…
…ts about callPackage
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 96cc899 - Browse repository at this point
Copy the full SHA 96cc899View commit details -
cuda-modules/cuda/overrides: add TODOs for @ConnorBaker
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 40aab07 - Browse repository at this point
Copy the full SHA 40aab07View commit details -
cuda-modules: use hostPlatform when downloading binaries
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 2057e24 - Browse repository at this point
Copy the full SHA 2057e24View commit details -
cuda-modules/setup-hooks: switch to directory structure
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for cd632d8 - Browse repository at this point
Copy the full SHA cd632d8View commit details -
cuda-modules: always get *Platform from stdenv
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 1aa56f0 - Browse repository at this point
Copy the full SHA 1aa56f0View commit details -
cuda-modules/cuda/overrides: simplify callPackage then overrideAttrs …
…pattern
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 0fec676 - Browse repository at this point
Copy the full SHA 0fec676View commit details -
cudaPackages.cuda_nvcc: lib must precede static in outputs
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for ddcfff0 - Browse repository at this point
Copy the full SHA ddcfff0View commit details -
cuda-modules: add check for duplicate/misordered outputs
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 112d38b - Browse repository at this point
Copy the full SHA 112d38bView commit details -
cuda-modules: update note on use of lndir from path
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 49676c7 - Browse repository at this point
Copy the full SHA 49676c7View commit details -
cudaPackages.saxpy: Jetson should be supported after CUDA 11.4
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 868fa52 - Browse repository at this point
Copy the full SHA 868fa52View commit details -
cuda-modules/cuda/overrides: remove unused callPackage arguments
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 2b351b2 - Browse repository at this point
Copy the full SHA 2b351b2View commit details -
cuda-modules/flags: use cudaAtLeast when possible
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 0304c9b - Browse repository at this point
Copy the full SHA 0304c9bView commit details -
cuda-modules/flags: ignore platforms in throwIf in isJetsonBuild
Since, even under cross-compilation, we evaluate this flag on multiple platforms, it makes more sense to move the platform check out of the throw condition and into the boolean return value. The alternative is to restrict all uses of this value to locations which gaurd evaluation so it does not occur when the host platform is still x86_64.
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 5b65222 - Browse repository at this point
Copy the full SHA 5b65222View commit details -
cuda-modules: fix deprecated uses of substituteInPlace replace flag
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 969ee2b - Browse repository at this point
Copy the full SHA 969ee2bView commit details -
cuda-modules/cuda/overrides: backendStdenv.cc is already part of nati…
…veBuildInputs
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 3b629a2 - Browse repository at this point
Copy the full SHA 3b629a2View commit details -
cuda-modules/cuda/overrides: specify spliced packages for cuda_nvcc p…
…ostPatch phase
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for e55a9c2 - Browse repository at this point
Copy the full SHA e55a9c2View commit details -
cuda-modules/generic-builders/manifest: wip cross-compilation
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for f85d321 - Browse repository at this point
Copy the full SHA f85d321View commit details -
cuda-modules/saxpy: remove CMAKE_VERBOSE_MAKEFILE
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 2b6a5a9 - Browse repository at this point
Copy the full SHA 2b6a5a9View commit details -
cuda-modules/setup-hooks/setup-cuda-hook: factor out cc access
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 77ea14b - Browse repository at this point
Copy the full SHA 77ea14bView commit details -
cuda-modules/setup-hooks/auto-add-cuda-compat-runpath-hook: collapse …
…body like other setup hooks
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 37d2448 - Browse repository at this point
Copy the full SHA 37d2448View commit details -
cuda-modules/setup-hooks: wip rewrite and set NIX_DEBUG=1
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for de0bb6a - Browse repository at this point
Copy the full SHA de0bb6aView commit details -
cudaPackages.cuda_nvcc: never has a lib output
Connor Baker committedMar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 3297d6f - Browse repository at this point
Copy the full SHA 3297d6fView commit details -
Connor Baker committed
Mar 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 1ac7621 - Browse repository at this point
Copy the full SHA 1ac7621View commit details
Commits on Mar 27, 2024
-
cuda-modules/cuda/overrides: cuda_nvcc should not include references …
…to cuda_cudart
Connor Baker committedMar 27, 2024 Configuration menu - View commit details
-
Copy full SHA for a026c05 - Browse repository at this point
Copy the full SHA a026c05View commit details -
cudaPackages.nccl: remove unneeded makeFlags, specify splicing, and e…
…nable structuredAttrs
Connor Baker committedMar 27, 2024 Configuration menu - View commit details
-
Copy full SHA for b340c3f - Browse repository at this point
Copy the full SHA b340c3fView commit details -
cuda-modules/generic-builders/manifest: cleanup
Connor Baker committedMar 27, 2024 Configuration menu - View commit details
-
Copy full SHA for 0fa534c - Browse repository at this point
Copy the full SHA 0fa534cView commit details -
cuda-modules/setup-hooks/mark-for-cudatoolkit-root-hook: rewrite
Connor Baker committedMar 27, 2024 Configuration menu - View commit details
-
Copy full SHA for 1f077ac - Browse repository at this point
Copy the full SHA 1f077acView commit details -
cudaPackages.saxpy: getDev/getLib would not always select the desired…
… output
Connor Baker committedMar 27, 2024 Configuration menu - View commit details
-
Copy full SHA for 3fc9e9b - Browse repository at this point
Copy the full SHA 3fc9e9bView commit details -
cuda-modules/setup-hooks/setup-cuda-hook: rewrite
Connor Baker committedMar 27, 2024 Configuration menu - View commit details
-
Copy full SHA for 7fced11 - Browse repository at this point
Copy the full SHA 7fced11View commit details -
cudaPackages.saxpy: attempt manually setting flags for cross
Connor Baker committedMar 27, 2024 Configuration menu - View commit details
-
Copy full SHA for b43bf06 - Browse repository at this point
Copy the full SHA b43bf06View commit details