···5353 inherit (cudaPackages) cudatoolkit cudnn nccl;
54545555 pname = "jaxlib";
5656- version = "0.3.15";
5656+ version = "0.3.22";
57575858 meta = with lib; {
5959 description = "JAX is Autograd and XLA, brought together for high-performance machine learning research.";
···9696 owner = "google";
9797 repo = "jax";
9898 rev = "${pname}-v${version}";
9999- sha256 = "sha256-pIl7zzl82w5HHnJadH2vtCT4mYFd5YmM9iHC2GoJD6s=";
9999+ hash = "sha256-bnczJ8ma/UMKhA5MUQ6H4az+Tj+By14ZTG6lQQwptQs=";
100100 };
101101102102 nativeBuildInputs = [
···235235 fetchAttrs = {
236236 sha256 =
237237 if cudaSupport then
238238- "sha256-tdO4YjO985zbittb16RFWgxgUBrHYQfv5gRsA4IAkTk="
238238+ "sha256-Z9GDWGv+1YFyJjudyshZfeRJsKShoA1kIbNR3h3GxPQ="
239239 else if stdenv.isDarwin then
240240- "sha256-+XYxfXBCASueqDGg0Zqcmpf7zmemYM6xCE+x0rl3j34="
240240+ "sha256-i3wiJHD4+pgTvDMhnYiQo9pdxxKItgYnc4/4wGt2NXM="
241241 else
242242- "sha256-La1wC8X5aGK5mXvYy/kO8n4J+zaRZEc/DAX5zaH1D5A=";
242242+ "sha256-liRxmjwm0OmVMfgoGXx+nGBdW2fzzP/d4zmK6A59HAM=";
243243 };
244244245245 buildAttrs = {
···293293 inherit meta pname version;
294294 format = "wheel";
295295296296- src = "${bazel-build}/jaxlib-${version}-cp${builtins.replaceStrings ["."] [""] python.pythonVersion}-none-${platformTag}.whl";
296296+ src =
297297+ let cp = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}";
298298+ in "${bazel-build}/jaxlib-${version}-${cp}-${cp}-${platformTag}.whl";
297299298300 # Note that cudatoolkit is necessary since jaxlib looks for "ptxas" in $PATH.
299301 # See https://github.com/NixOS/nixpkgs/pull/164176#discussion_r828801621 for
-6
pkgs/top-level/python-packages.nix
···4780478047814781 jaxlib-bin = callPackage ../development/python-modules/jaxlib/bin.nix {
47824782 cudaSupport = pkgs.config.cudaSupport or false;
47834783- # At the time of writing (2022-04-18), `cudaPackages.nccl` is broken, so we
47844784- # pin to `cudaPackages_11_6` instead.
47854785- cudaPackages = pkgs.cudaPackages_11_6;
47864783 };
4787478447884785 jaxlib-build = callPackage ../development/python-modules/jaxlib rec {
···47924789 };
47934790 # Some platforms don't have `cudaSupport` defined, hence the need for 'or false'.
47944791 cudaSupport = pkgs.config.cudaSupport or false;
47954795- # At the time of writing (2022-04-18), `cudaPackages.nccl` is broken, so we
47964796- # pin to `cudaPackages_11_6` instead.
47974797- cudaPackages = pkgs.cudaPackages_11_6;
47984792 IOKit = pkgs.darwin.apple_sdk_11_0.IOKit;
47994793 protobuf = pkgs.protobuf3_20; # jaxlib-build 0.3.15 won't build with protobuf 3.21
48004794 };