NVIDIA / NVIDIA/apex

void multi_tensor_apply err in pip install in windows10+cuda10.1

Open
#869 3 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

hello!
i what to install snake
https://github.com/zju3dv/snake/blob/master/INSTALL.md

first i install pytorch
https://pytorch.org/get-started/locally/

and i need use CUDA 10.1
so i use
pip install torch==1.5.0+cu101 torchvision==0.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
to install

and it need to install apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" .
but allways show the error

`

detected during:
instantiation of class "std::_Aligned<_Len, _Align, double, false> [with _Len=16ULL, _Align=16ULL]"
(1097): here
instantiation of class "std::_Aligned<_Len, _Align, int, false> [with _Len=16ULL, _Align=16ULL]"
(1104): here
instantiation of class "std::_Aligned<_Len, _Align, short, false> [with _Len=16ULL, _Align=16ULL]"
(1111): here
instantiation of class "std::_Aligned<_Len, _Align, char, false> [with _Len=16ULL, _Align=16ULL]"
(1118): here
instantiation of class "std::aligned_storage<_Len, _Align> [with _Len=16ULL, _Align=16ULL]"
csrc/multi_tensor_scale_kernel.cu(25): here
instantiation of "void load_store(T *, T *, int, int) [with T=float]"
csrc/multi_tensor_scale_kernel.cu(64): here
instantiation of "void ScaleFunctor<in_t, out_t>::operator()(int, volatile int *, TensorListMetadata<2> &, float) [with in_t=float, out_t=float]"
C:\Users\T34808\AppData\Local\Temp\pip-req-build-esyrs7sb\csrc\multi_tensor_apply.cuh(37): here
instantiation of "void multi_tensor_apply_kernel(int, volatile int *, T, U, ArgTypes...) [with T=TensorListMetadata<2>, U=ScaleFunctor<float, float>, ArgTypes=]"
C:\Users\T34808\AppData\Local\Temp\pip-req-build-esyrs7sb\csrc\multi_tensor_apply.cuh(106): here
instantiation of "void multi_tensor_apply<depth,T,ArgTypes...>(int, int, const at::Tensor &, const std::vector<std::vector<at::Tensor, std::allocatorat::Tensor>, std::allocator<std::vector<at::Tensor, std::allocatorat::Tensor>>> &, T, ArgTypes...) [with depth=2, T=ScaleFunctor<float, float>, ArgTypes=]"
csrc/multi_tensor_scale_kernel.cu(124): here

1 error detected in the compilation of "C:/Users/T34808/AppData/Local/Temp/tmpxft_0000433c_00000000-10_multi_tensor_scale_kernel.cpp1.ii".
multi_tensor_scale_kernel.cu
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin\\nvcc.exe' failed with exit status 1

Running setup.py install for apex ... error
Rolling back uninstall of apex
Moving to c:\users\t34808\desktop\env\snake2\lib\site-packages\apex-0.1-py3.7.egg-info
from c:\users\t34808\desktop\env\snake2\lib\site-packages~pex-0.1-py3.7.egg-info
Moving to c:\users\t34808\desktop\env\snake2\lib\site-packages\apex
from c:\users\t34808\desktop\env\snake2\lib\site-packages~pex
Replacing c:\users\t34808\desktop\env\snake2\lib\site-packages\apex-0.1-py3.7.egg-info from c:\users\t34808\desktop\env\snake2\lib\site-packages~pex-0.1-py3.7.egg-info
Replacing c:\users\t34808\desktop\env\snake2\lib\site-packages\apex\ from c:\users\t34808\desktop\env\snake2\lib\site-packages~pex
Cleaning up...
Removing source in C:\Users\T34808\AppData\Local\Temp\pip-req-build-esyrs7sb
Removed build tracker 'C:\Users\T34808\AppData\Local\Temp\pip-req-tracker-rt6w23r7'
ERROR: Command errored out with exit status 1: 'c:\users\t34808\desktop\env\snake2\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\T34808\AppData\Local\Temp\pip-req-build-esyrs7sb\setup.py'"'"'; file='"'"'C:\Users\T34808\AppData\Local\Temp\pip-req-build-esyrs7sb\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 'C:\Users\T34808\AppData\Local\Temp\pip-record-isxi8mb8\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\t34808\desktop\env\snake2\include\site\python3.7\apex' Check the logs for full command output.

`
multi_tensor_scale_kernel.cu is allways show error in compilation ...

i am using windows 10 + cuda10.1 + PyTorch 1.5
i need help~ thank for every one.

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 INSTALL.md and reproduce the Apex installation command on Windows 10 with CUDA 10.1 and PyTorch 1.5. Read csrc/multi_tensor_scale_kernel.cu alongside the reported nvcc output. Done means the documented installation succeeds or the supported environment and failure are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.