Skip to content
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

[BUG] error: Unable to pre-compile async_io, when compiling DeepSpeed from source #1401

Closed
chaoyanghe opened this issue Sep 26, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@chaoyanghe
Copy link

Describe the bug

RUN rm -rf ${STAGE_DIR}/DeepSpeed
RUN git clone https://github.com/Distributed-AI/DeepSpeed.git ${STAGE_DIR}/DeepSpeed
##Commit in which the AMI has been build
RUN cd /tmp/DeepSpeed && git checkout master
RUN rm ${STAGE_DIR}/DeepSpeed/requirements/requirements-sparse_attn.txt && touch ${STAGE_DIR}/DeepSpeed/requirements/requirements-sparser_attn.txt
## We have to do this otherwise bdist install Python 1.7
RUN rm ${STAGE_DIR}/DeepSpeed/requirements/requirements.txt && touch ${STAGE_DIR}/DeepSpeed/requirements/requirements.txt
ENV DS_BUILD_OPS=1 
ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0"
RUN cd ${STAGE_DIR}/DeepSpeed && sudo DS_BUILD_OPS=1 TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0" pip install -v ./

error:

Running command python setup.py egg_info
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-_xkfovpj/setup.py", line 135, in <module>
        abort(f"Unable to pre-compile {op_name}")
      File "/tmp/pip-req-build-_xkfovpj/setup.py", line 43, in abort
        assert False, msg
    AssertionError: Unable to pre-compile async_io
    No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
    [WARNING] Torch did not find cuda available, if cross-compiling or running with cpu only you can ignore this message. Adding compute capability for Pascal, Volta, and Turing (compute capabilities 6.0, 6.1, 6.2)
    DS_BUILD_OPS=1
     [WARNING]  async_io requires the dev libaio .so object and headers but these were not found.
     [WARNING]  async_io: please install the libaio-dev package with apt
     [WARNING]  If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
     [WARNING]  One can disable async_io with DS_BUILD_AIO=0
     [ERROR]  Unable to pre-compile async_io
@chaoyanghe chaoyanghe added the bug Something isn't working label Sep 26, 2021
@tjruwase
Copy link
Contributor

@chaoyanghe, thanks for reporting this error.

Can you try installing libaio-dev. For example on Ubuntu, you would do sudo apt install libaio-dev.

@tjruwase
Copy link
Contributor

tjruwase commented Oct 1, 2021

@chaoyanghe, can you please confirm whether or not the proposed solution worked for you? Thanks.

@tjruwase tjruwase self-assigned this Oct 1, 2021
@tjruwase
Copy link
Contributor

Closing for lack of response. Please feel free to reopen.

@affanmehmood
Copy link

Hey @tjruwase, I found and installed libaio on windows, but this error persists.

@tjruwase
Copy link
Contributor

@affanmehmood, thanks for reporting this problem. Unfortunately, we have not tested on windows so far as deepspeed has primarily been used on linux. Can you please open a new issue and share some of the logs you are seeing?

@affanmehmood
Copy link

Thanks for responding @tjruwase. I've opened up this issue for windows. #1769

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants