-
Notifications
You must be signed in to change notification settings - Fork 282
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
Issue with building PyTorch 2.1.2 using EasyBuild 5 #3570
Comments
ping @Micket |
Possibly related relatively recent PR: |
build_cmd is a dangerous name. In some easyblocks, it means the first, primary, executable to run for the build step. But in this easyblock it seems to mean the first argument, i.e. the "target" for python setup.py. Now, i would very much like to figure out how and where this changed as to track down if we have a larger systematic error with EB5, or if it just affects PyTorch somehow. |
When changing `use_pip` after `PythonPackage.__init__` called `determine_install_command` the change is not honored. Call it again after the change. This also requires to make it idempotent so all member variables changed in that function need to be set in all cases. Fixes easybuilders#3570
One major issue is that the attempt to use pip only for the latest PyTorch versions introduced in #3079 does not work as expected:
As I agree with @Micket that The issue here should be fixed with #3574 which is related and required independent of the other PR although that helps too. |
This may be introduced via #3539, but not sure... |
No that didn't change the behavior. It would be the same without but possibly not resolving the template so fail for that additionally. The issue is rather easybuilders/easybuild-easyconfigs#20004 that remove |
There seems to be an issue with the new handling of use_pip and buildcmd. Basically, for some reason the code ends up here:
easybuild-easyblocks/easybuild/easyblocks/generic/pythonpackage.py
Line 836 in e0de69f
But in the easyconfig, e.g. PyTorch-2.1.2-foss-2023a-CUDA-12.1.1.eb, 'buildcmd' is set:
buildcmd = '%(python)s setup.py build' # Run the (long) build in the build step
which leads to an incorrect command being parsed together and the build failing. From the log, it seems like use_pip should be correctly set in the PyTorch easyblock, but it does not appear to actually be used... Not sure what's going on here.The text was updated successfully, but these errors were encountered: