install problem: nvcc fatal : Failed to detect host compiler properties.
zyxdSTU opened this issue · 0 comments
help me, I have this problem for long time.
my environment
linux system
torch 1.6.0
cuda 10.2
when i install apex, i encounted this problem
/home/zhouyu/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++ -pthread -shared -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/home/zhouyu/anaconda3/lib -L/home/zhouyu/anaconda3/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/home/zhouyu/anaconda3/lib -L/home/zhouyu/anaconda3/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/zhouyu/anaconda3/lib -Wl,-rpath-link,/home/zhouyu/anaconda3/lib -L/home/zhouyu/anaconda3/lib -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/zhouyu/anaconda3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/zhouyu/anaconda3/include /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/flatten_unflatten.o -L/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-3.7/apex_C.cpython-37m-x86_64-linux-gnu.so
building 'amp_C' extension
Emitting ninja build file /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/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/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_sgd_kernel.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_sgd_kernel.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[2/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_scale_kernel.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_scale_kernel.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[3/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_l2norm_kernel.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_l2norm_kernel.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[4/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_lamb_stage_1.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_lamb_stage_1.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[5/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_axpby_kernel.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_axpby_kernel.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[6/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_lamb_stage_2.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_lamb_stage_2.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[7/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_adagrad.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adagrad.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adagrad.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_adagrad.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adagrad.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[8/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_adam.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_adam.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[9/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_novograd.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_novograd.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[10/11] /usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_lamb.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o
/usr/local/cuda/bin/nvcc -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/multi_tensor_lamb.cu -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Failed to detect host compiler properties.
[11/11] /home/zhouyu/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++ -MMD -MF /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/amp_C_frontend.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/zhouyu/anaconda3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/zhouyu/anaconda3/include -fPIC -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouyu/anaconda3/include/python3.7m -c -c /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/amp_C_frontend.cpp -o /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/build/temp.linux-x86_64-3.7/csrc/amp_C_frontend.o -O3 -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -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/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
from /home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/csrc/amp_C_frontend.cpp:1:
/home/zhouyu/anaconda3/lib/python3.7/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/zhouyu/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build
env=env)
File "/home/zhouyu/anaconda3/lib/python3.7/subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze/setup.py", line 420, in <module>
extras_require=extras,
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 649, in build_extensions
build_ext.build_extensions(self)
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 205, in build_extension
_build_ext.build_extension(self, ext)
File "/home/zhouyu/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 478, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1233, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/zhouyu/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension
Running setup.py install for apex ... error
Cleaning up...
Removing source in /home/zhouyu/zy/software/apex/pip-req-build-wsxcq6ze
Removed build tracker '/home/zhouyu/zy/software/apex/pip-req-tracker-h6yn7gr8'