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] pip package 0.4.13 fails to build wheel #1128

Open
project-tuva opened this issue Jul 17, 2023 · 0 comments
Open

[bug] pip package 0.4.13 fails to build wheel #1128

project-tuva opened this issue Jul 17, 2023 · 0 comments

Comments

@project-tuva
Copy link

I downloaded fairscale-0.4.13.tar.gz from PyPI, and extracted the fairscale-0.4.13 folder.

Building the wheel fails with both pip wheel --no-build-isolation --no-deps . and python setup.py bdist_wheel

I set the following environmental variables as described in the documentation:

export BUILD_CUDA_EXTENSIONS=1
export TORCH_CUDA_ARCH_LIST="7.0 7.2 8.0 8.6"

The error logs are identical in both cases:

      running bdist_wheel
      running build
      running build_py
      running egg_info
      writing fairscale.egg-info/PKG-INFO
      writing dependency_links to fairscale.egg-info/dependency_links.txt
      writing entry points to fairscale.egg-info/entry_points.txt
      writing requirements to fairscale.egg-info/requires.txt
      writing top-level names to fairscale.egg-info/top_level.txt
      reading manifest file 'fairscale.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      adding license file 'NOTICE'
      writing manifest file 'fairscale.egg-info/SOURCES.txt'
      /....../lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'fairscale.clib.fused_adam_cuda' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'fairscale.clib.fused_adam_cuda' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'fairscale.clib.fused_adam_cuda' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'fairscale.clib.fused_adam_cuda' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      running build_ext
      building 'fairscale.fused_adam_cuda' extension
      Emitting ninja build file /....../fairscale-0.4.13/build/temp.linux-x86_64-cpython-310/build.ninja...
      Compiling objects...
      Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
      ninja: error: '/....../fairscale-0.4.13/fairscale/clib/fused_adam_cuda/fused_adam_cuda.cpp', needed by '/....../fairscale-0.4.13/build/temp.linux-x86_64-cpython-310/fairscale/clib/fused_adam_cuda/fused_adam_cuda.o', missing and no known rule to make it
      Traceback (most recent call last):
        File "/....../lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build
          subprocess.run(
        File "/....../lib/python3.10/subprocess.py", line 526, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

I need build fairscale from source and can't access the internet meanwhile.

The error I got seems to be similar to #294
Thank you for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant