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

problem on python setup.py install #22

Open
Peter199709 opened this issue Oct 10, 2021 · 0 comments
Open

problem on python setup.py install #22

Peter199709 opened this issue Oct 10, 2021 · 0 comments

Comments

@Peter199709
Copy link

When i cd /cuda/cubilc_feature_sampling and then I python setup.py install --user,there are some problems :
sparenet) root@98a664fa2d1b:/data/sparenet/cuda/cubic_feature_sampling# python setup.py install --user
running install
running bdist_egg
running egg_info
writing cubic_feature_sampling.egg-info/PKG-INFO
writing dependency_links to cubic_feature_sampling.egg-info/dependency_links.txt
writing top-level names to cubic_feature_sampling.egg-info/top_level.txt
reading manifest file 'cubic_feature_sampling.egg-info/SOURCES.txt'
writing manifest file 'cubic_feature_sampling.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'cubic_feature_sampling' extension
Emitting ninja build file /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/2] /usr/local/cuda/bin/nvcc -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/TH -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/miniconda3/envs/sparenet/include/python3.7m -c -c /data/sparenet/cuda/cubic_feature_sampling/cubic_feature_sampling.cu -o /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/cubic_feature_sampling.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_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=cubic_feature_sampling -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_37,code=sm_37 -std=c++14
FAILED: /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/cubic_feature_sampling.o
/usr/local/cuda/bin/nvcc -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/TH -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/miniconda3/envs/sparenet/include/python3.7m -c -c /data/sparenet/cuda/cubic_feature_sampling/cubic_feature_sampling.cu -o /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/cubic_feature_sampling.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
_ -D__CUDA_NO_BFLOAT16_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=cubic_feature_sampling -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_37,code=sm_37 -std=c++14
/bin/sh: /usr/local/cuda/bin/nvcc: No such file or directory
[2/2] c++ -MMD -MF /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/cubic_feature_sampling_cuda.o.d -pthread -B /root/miniconda3/envs/sparenet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/TH -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/miniconda3/envs/sparenet/include/python3.7m -c -c /data/sparenet/cuda/cubic_feature_sampling/cubic_feature_sampling_cuda.cpp -o /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/cubic_feature_sampling_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=cubic_feature_sampling -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/cubic_feature_sampling_cuda.o
c++ -MMD -MF /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/cubic_feature_sampling_cuda.o.d -pthread -B /root/miniconda3/envs/sparenet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/TH -I/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/miniconda3/envs/sparenet/include/python3.7m -c -c /data/sparenet/cuda/cubic_feature_sampling/cubic_feature_sampling_cuda.cpp -o /data/sparenet/cuda/cubic_feature_sampling/build/temp.linux-x86_64-3.7/cubic_feature_sampling_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=cubic_feature_sampling -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 /data/sparenet/cuda/cubic_feature_sampling/cubic_feature_sampling_cuda.cpp:9:0:
/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory
#include <cuda_runtime_api.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build
env=env)
File "/root/miniconda3/envs/sparenet/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
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 "setup.py", line 19, in
cmdclass={"build_ext": BuildExtension},
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 164, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
self.run_command(cmdname)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
build_ext.build_extensions(self)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/root/miniconda3/envs/sparenet/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1359, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/root/miniconda3/envs/sparenet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

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