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

Support for macOS Apple chip #140

Open
dabasjayant opened this issue Nov 4, 2022 · 1 comment
Open

Support for macOS Apple chip #140

dabasjayant opened this issue Nov 4, 2022 · 1 comment

Comments

@dabasjayant
Copy link

dabasjayant commented Nov 4, 2022

System: MacOS 12.5, Apple M2
Python ver.: Python 3.9.6 (default installation)

Unable to install for macOS due to lack of CUDA support. Can we add the option to choose if the user wants to enable the GPU or not?

$ pip3 install neural_renderer_pytorch
Defaulting to user installation because normal site-packages is not writeable
Collecting neural_renderer_pytorch
  Using cached neural_renderer_pytorch-1.1.3.tar.gz (19 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/yp/rj8hsnnn67d2j8bk8wkycv1jtv2523/T/pip-install-txvkp6qq/neural-renderer-pytorch_8ad7d5bf6a9349cd869edf1fb320505a/setup.py", line 15, in <module>
          CUDAExtension('neural_renderer.cuda.load_textures', [
        File "/Users/jayant.dabas/Library/Python/3.9/lib/python/site-packages/torch/utils/cpp_extension.py", line 1047, in CUDAExtension
          library_dirs += library_paths(cuda=True)
        File "/Users/jayant.dabas/Library/Python/3.9/lib/python/site-packages/torch/utils/cpp_extension.py", line 1179, in library_paths
          if (not os.path.exists(_join_cuda_home(lib_dir)) and
        File "/Users/jayant.dabas/Library/Python/3.9/lib/python/site-packages/torch/utils/cpp_extension.py", line 2230, in _join_cuda_home
          raise EnvironmentError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.
@dabasjayant dabasjayant changed the title Support for macOS silicone chip Support for macOS Apple chip Nov 4, 2022
@koushikam
Copy link

Were you able to resole this issue?

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

2 participants