NVIDIA / NVIDIA/apex

Can't install CUDA and C++ version

Open
#462 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9k
Forks
1.5k
Avg merge
2d 4h
Merged PRs (30d)
3

Description

Hi,

I followed the quick-start instructions in the README, and I am able to install the python-only version just fine. However, when I try to install the CUDA and C++ version (after uninstalling the python-only version) using

pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

I eventually get the following error, and nothing is installed:

Traceback (most recent call last):
File "/data/rsg/chemistry/yangk/conda/envs/cuda10/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 178, in main
status = self.run(options, args)
File "/data/rsg/chemistry/yangk/conda/envs/cuda10/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 414, in run
use_user_site=options.use_user_site,
File "/data/rsg/chemistry/yangk/conda/envs/cuda10/lib/python3.6/site-packages/pip/_internal/req/init.py", line 58, in install_given_reqs
**kwargs
File "/data/rsg/chemistry/yangk/conda/envs/cuda10/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 953, in install
spinner=spinner,
File "/data/rsg/chemistry/yangk/conda/envs/cuda10/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 776, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "/data/rsg/chemistry/yangk/conda/envs/cuda10/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-req-build-fpm1mkcy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-bio8bemk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-fpm1mkcy/

I'm on Linux using a conda environment running python 3.6.8, pytorch 1.1.0, and CUDA 10.0.130. Is there some other issue with my environment?

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README quick-start instructions and reproduce the pip install command with --cpp_ext and --cuda_ext in the stated Python 3.6, PyTorch 1.1.0, and CUDA 10.0 environment. Inspect setup.py and capture the earlier build output preceding pip's final InstallationError; done means the C++ and CUDA installation completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python, pytorch
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.