pip๋ฅผ ์ด์ฉํด inplace-abn์ ์ค์นํ๋ ค๊ณ ํ๋๋ฐ ๋ค์๊ณผ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ค.
>> pip install inplace-abn
Collecting inplace-abn
Using cached inplace-abn-1.1.0.tar.gz (137 kB)
Building wheels for collected packages: inplace-abn
Building wheel for inplace-abn (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/user/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fh7grh_8/inplace-abn/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fh7grh_8/inplace-abn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-inwtlcyd
cwd: /tmp/pip-install-fh7grh_8/inplace-abn/
Complete output (97 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/group.py -> build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/abn.py -> build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/__init__.py -> build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/_version.py -> build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/functions.py -> build/lib.linux-x86_64-3.8/inplace_abn
running build_ext
building 'inplace_abn._backend' extension
creating /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8
creating /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src
Emitting ninja build file /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/4] /usr/local/cuda-10.0/bin/nvcc -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn_cuda.cu -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14
FAILED: /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cuda.o
/usr/local/cuda-10.0/bin/nvcc -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn_cuda.cu -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14
/bin/sh: 1: /usr/local/cuda-10.0/bin/nvcc: not found
[2/4] c++ -MMD -MF /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/utils.o.d -pthread -B /home/user/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/utils.cpp -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/utils.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[3/4] c++ -MMD -MF /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cpu.o.d -pthread -B /home/user/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn_cpu.cpp -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cpu.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[4/4] c++ -MMD -MF /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn.o.d -pthread -B /home/user/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn.cpp -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn.cpp:3:
/home/user/anaconda3/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if ((end - begin) >= grain_size)
^
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build
subprocess.run(
File "/home/user/anaconda3/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-fh7grh_8/inplace-abn/setup.py", line 48, in <module>
setuptools.setup(
File "/home/user/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/user/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/user/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/user/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/anaconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 290, in run
self.run_command('build')
File "/home/user/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/anaconda3/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/user/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/anaconda3/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/user/anaconda3/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/user/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
build_ext.build_extensions(self)
File "/home/user/anaconda3/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/user/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/user/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/user/anaconda3/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/user/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 491, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1250, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
----------------------------------------
ERROR: Failed building wheel for inplace-abn
Running setup.py clean for inplace-abn
Failed to build inplace-abn
Installing collected packages: inplace-abn
Running setup.py install for inplace-abn ... error
ERROR: Command errored out with exit status 1:
command: /home/user/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fh7grh_8/inplace-abn/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fh7grh_8/inplace-abn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dwujicdm/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/anaconda3/include/python3.8/inplace-abn
cwd: /tmp/pip-install-fh7grh_8/inplace-abn/
Complete output (99 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/group.py -> build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/abn.py -> build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/__init__.py -> build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/_version.py -> build/lib.linux-x86_64-3.8/inplace_abn
copying inplace_abn/functions.py -> build/lib.linux-x86_64-3.8/inplace_abn
running build_ext
building 'inplace_abn._backend' extension
creating /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8
creating /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src
Emitting ninja build file /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/4] /usr/local/cuda-10.0/bin/nvcc -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn_cuda.cu -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14
FAILED: /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cuda.o
/usr/local/cuda-10.0/bin/nvcc -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn_cuda.cu -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14
/bin/sh: 1: /usr/local/cuda-10.0/bin/nvcc: not found
[2/4] c++ -MMD -MF /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/utils.o.d -pthread -B /home/user/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/utils.cpp -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/utils.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[3/4] c++ -MMD -MF /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cpu.o.d -pthread -B /home/user/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn_cpu.cpp -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn_cpu.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[4/4] c++ -MMD -MF /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn.o.d -pthread -B /home/user/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA=1 -I/tmp/pip-install-fh7grh_8/inplace-abn/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/home/user/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/user/anaconda3/include/python3.8 -c -c /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn.cpp -o /tmp/pip-install-fh7grh_8/inplace-abn/build/temp.linux-x86_64-3.8/src/inplace_abn.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
from /home/user/anaconda3/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /tmp/pip-install-fh7grh_8/inplace-abn/src/inplace_abn.cpp:3:
/home/user/anaconda3/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if ((end - begin) >= grain_size)
^
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build
subprocess.run(
File "/home/user/anaconda3/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-fh7grh_8/inplace-abn/setup.py", line 48, in <module>
setuptools.setup(
File "/home/user/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/user/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/user/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/user/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/anaconda3/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/home/user/anaconda3/lib/python3.8/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/home/user/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/anaconda3/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/user/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/anaconda3/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/user/anaconda3/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/user/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
build_ext.build_extensions(self)
File "/home/user/anaconda3/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/user/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/user/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/user/anaconda3/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/user/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 491, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1250, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/user/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
----------------------------------------
ERROR: Command errored out with exit status 1: /home/user/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fh7grh_8/inplace-abn/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fh7grh_8/inplace-abn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dwujicdm/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/anaconda3/include/python3.8/inplace-abn Check the logs for full command output.
์ข .. ๊ธธ๋ค
๋์๊ฐ ๋ญ์ง ๋ชจ๋ฅด๊ฒ ์ง๋ง ๊ฐ์๊ธฐ ์ถํํด์ ๋นํฉ.. ๋ ์ด์ด์์ด์ ์ธ์คํ์๋ ์ฌ๋ฆผ
์์ธ
์ฐพ์๋ณด๋ $CUDA_HOME์ ๊ฒฝ๋ก๊ฐ ์๋ชป๋์ด์ ๊ทธ๋ฐ๊ฑฐ๋ผ๊ณ ํ๋ค. (์ถ์ฒ)
๊ทธ๋ฌ๋ค.. ์๊ทธ๋ฌ๋
์ค์ ๋ฒ์ ์ 10.2์ธ๋ฐ CUDA_HOME์ 10.0์ผ๋ก ์ค์ ๋์ด ์๋ค.
์์ ์ cuda๋ฅผ ๊น๋ค ์ง์ ๋ค ํ๋ค๊ฐ ๋ฌธ์ ๊ฐ ์๊ฒผ๋๋ณด๋ค
ํด๊ฒฐ๋ฐฉ๋ฒ
.bashrc ํ์ผ์ ์์ ํด์ ํ๊ฒฝ๋ณ์๋ฅผ ๋ค์ ์ค์ ํด์ค๋ค.
vi ~/.bashrc
๊ทธ๋ฆฌ๊ณ ๋ค์ ์์ํด์ค๋ค.
source ~/.bashrc
์ค์น ์ฑ๊ณต ^_^
๋ฐ์ํ