Repository navigation
Conversation
|
It turns out that On another note, I'm thoroughly stumped as to why CI is failing with the following error, It builds without issue for me locally, and I cannot find any flaw with the changes made to |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
Resolved the flatbuffers issue in 94f32d8. |
|
Heroic effort! The gast changes LGTM! |
|
Ok, I managed to fix the tensorflowWithCuda build in samuela@d4d40f6. The trickiness here is that there's a patchelf bug we have to workaround. See NixOS/patchelf#256 for more info. Now that everything is building this PR is ready for review! |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
|
||
| ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { }; | ||
|
|
||
| inherit (import ../development/python-modules/clang self) |
There was a problem hiding this comment.
As we want to get rid of multiple versions as soon as possible I don't think we should convert this into a common package definition. Just copy the current file and adjust it for the older version or only use overrideAttr if possible.
Also I am not sure if we even can/want to introduce multiple version of the same package.
/cc @dotlambda
There was a problem hiding this comment.
For better or worse, tensorflow 2.6.0 depends on clang v5. The currently packaged version is v11, so I didn't want to break compatibility for people already using v11.
There was a problem hiding this comment.
Happy to package it any way that you feel is most appropriate as long as tensorflow can get access to clang_5.
|
Using as part of a flake with Unfortunately I found that Maybe someone knows what's going on here. I hope it's OK I bring this up here. I'm really happy about @samuela's efforts to move tensorflow forward in |
|
Hmm, odd. I haven't tested the ARM build. That seems like an odd error considering it happens on one system and not the other... |
|
It did happen on the other system as well, but only on the first try (I kept the output because it looked like a bug). Second attempt to do the same thing went through. The one where it's always failing is a CI Pipeline, so parts of the system get thrown away after each build. Maybe I'll have to look up where that tensorflow-2.6.0-deps.tar.gz file comes from. |
dotlambda
left a comment
There was a problem hiding this comment.
This is definitely not the way to go. Please check whether we can relax tensorflow's version constraints rather than introducing two new versioned attributes in python-packages.nix.
Co-authored-by: Sandro <[email protected]>
Co-authored-by: Robert Schütz <[email protected]>
For better or worse, tensorflow is quite good about dependency version hygiene. For example, the gast version is capped for a reason (https://github.com/tensorflow/tensorflow/blob/v2.6.0/tensorflow/tools/pip_package/setup.py#L97-L99). And generally speaking, major clang versions have significant incompatibilities. |
|
I had a look at what's wrong with that broken I then compared the two files using
Looking up MKL it seems to be an Intel libarary, so I would guess Bazel configures it out for everything but x86_64 builds. I also found a change (#126034) which made it so that Maybe the |
"newer versions are incompatible with the rest of the ecosystem" is a very unspecific reason. I'm just asking you to try to unpin these dependencies and see if anything breaks. If unpinning clang does break things, we should only package the version of clang that tensorflow needs. If unpinning gast breaks things, then we should think about downgrading that version. However, it seems like we successfully unpinned gast in the past. |
| }; | ||
|
|
||
| checkInputs = [ nose ]; | ||
| # The pypi distribution does not have any tests. |
There was a problem hiding this comment.
Also the comment is not required. It is very standard to do this, so much standard that there are no questions asked in review if you fetch from GitHub/etc instead of pypi.
There was a problem hiding this comment.
There is no convenient GitHub repo for this package to fetch from unfortunately.
There was a problem hiding this comment.
But the thing we're using right now "is a non-official packaging directly from the debian packages for the purpose of pypi package." We should really just build Python bindings at the same time as clang.
There was a problem hiding this comment.
Yeah, there's been some discussion on this (#89214). But for the moment that discussion seems to have stalled, so I propose that we move forward with sub-optimal pypi bindings and then switch to nice nix-built ones once they're ready.
|
Thank you for working on this! Is there any chance this gets merged soon? 🙂 |
|
tensorflow has been upgraded to 2.7 already so this can be closed now |
Motivation for this change
Upgrade tensorflow to the latest version.
Upgrading tensorflow required a number of changes to related libraries and dependencies. For some reason tensorflow 2.6.0 introduces a dependency on
clang, the Python package, so we must package that as well. In addition, keras and tensorflow-estimator must be kept up to date with the same version as tensorflow, hence those commits as well.The main blocker right now is thatThis has been fixed. This appears to be related totensorflowWithCudais broken. It fails with the messagepatchelf: maximum file size exceededin the final install phase.TODO:
tensorflowbuilds and passes tests (though it takes 24 CPU hours)tensorflowWithCudaOptionally,
-binderivation?Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)