Skip to content

Issue with building PyTorch 2.1.2 using EasyBuild 5 #3570

Description

@lcniel

There seems to be an issue with the new handling of use_pip and buildcmd. Basically, for some reason the code ends up here:

build_cmd = f"{self.python_cmd} setup.py {build_cmd}"

        if self.use_setup_py:

...
            if not build_cmd:
                build_cmd = 'build'  # Default value for setup.py
            build_cmd = f"{self.python_cmd} setup.py {build_cmd}"

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions