Scene-Graph-Benchmark.pytorch icon indicating copy to clipboard operation
Scene-Graph-Benchmark.pytorch copied to clipboard

Ubuntu 21.04, Pytorch 1.8.0, cuda 11.1 gcc 10.3.0 can not run the project successfully???

Open jiajunhua opened this issue 3 years ago • 3 comments

❓ my computer configuration is RTX3080ti,12700K , my environment is Ubuntu 21.04, Pytorch 1.8.0, cuda 11.1 gcc 10.3.0 , some errors occurs as follows: thanks in advance.

torch.version = 1.8.0

Compiling cuda extensions with nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Tue_Sep_15_19:10:02_PDT_2020 Cuda compilation tools, release 11.1, V11.1.74 Build cuda_11.1.TC455_06.29069683_0 from /usr/local/cuda/bin

running install running bdist_egg running egg_info writing apex.egg-info/PKG-INFO writing dependency_links to apex.egg-info/dependency_links.txt writing top-level names to apex.egg-info/top_level.txt reading manifest file 'apex.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'apex.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py running build_ext building 'apex_C' extension Emitting ninja build file /home/jjh/projects/SGB/apex/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) setup.py:46: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies! warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!") ninja: no work to do. g++ -pthread -shared -B /home/jjh/anaconda3/envs/sgb/compiler_compat -L/home/jjh/anaconda3/envs/sgb/lib -Wl,-rpath=/home/jjh/anaconda3/envs/sgb/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/flatten_unflatten.o -L/home/jjh/anaconda3/envs/sgb/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/jjh/projects/SGB/apex/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/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_adam.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_adam.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [2/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_sgd_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_sgd_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [3/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_scale_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_scale_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [4/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_novograd.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_novograd.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [5/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb_stage_2.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb_stage_2.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [6/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_axpby_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_axpby_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [7/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_l2norm_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_l2norm_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [8/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb_stage_1.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb_stage_1.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [9/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)))>::den == 1)> [with _Period2 = _Period2; _Rep = _Rep; _Period = _Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | _S_gcd(intmax_t __m, intmax_t __n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [10/10] c++ -MMD -MF /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/amp_C_frontend.o.d -pthread -B /home/jjh/anaconda3/envs/sgb/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/amp_C_frontend.cpp -o /home/jjh/projects/SGB/apex/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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -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/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/jjh/projects/SGB/apex/csrc/amp_C_frontend.cpp:1: /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas] 83 | #pragma omp parallel for if ((end - begin) >= grain_size) | ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build env=env) File "/home/jjh/anaconda3/envs/sgb/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 300, in extras_require=extras, File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run self.do_egg_install() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install self.run_command('bdist_egg') File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 164, in run cmd = self.call_command('install_lib', warn_dir=0) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command self.run_command(cmdname) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run self.build() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/install_lib.py", line 107, in build self.run_command('build_ext') File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions build_ext.build_extensions(self) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 202, in build_extension _build_ext.build_extension(self, ext) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension depends=ext.depends) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile with_cuda=with_cuda) File "/home/jjh/anaconda3/envs/sgb/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 "/home/jjh/anaconda3/envs/sgb/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

jiajunhua avatar Feb 27 '22 13:02 jiajunhua

I'm able to run this project with Ubuntu 20.04, CUDA 11.1, CUDNN 8.0.5, and PyTorch-LTS 1.8.2.

zhanwenchen avatar Feb 27 '22 18:02 zhanwenchen

❓ my computer configuration is RTX3080ti,12700K , my environment is Ubuntu 21.04, Pytorch 1.8.0, cuda 11.1 gcc 10.3.0 , some errors occurs as follows: thanks in advance.

torch.version = 1.8.0

Compiling cuda extensions with nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Tue_Sep_15_19:10:02_PDT_2020 Cuda compilation tools, release 11.1, V11.1.74 Build cuda_11.1.TC455_06.29069683_0 from /usr/local/cuda/bin

running install running bdist_egg running egg_info writing apex.egg-info/PKG-INFO writing dependency_links to apex.egg-info/dependency_links.txt writing top-level names to apex.egg-info/top_level.txt reading manifest file 'apex.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'apex.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py running build_ext building 'apex_C' extension Emitting ninja build file /home/jjh/projects/SGB/apex/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) setup.py:46: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies! warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!") ninja: no work to do. g++ -pthread -shared -B /home/jjh/anaconda3/envs/sgb/compiler_compat -L/home/jjh/anaconda3/envs/sgb/lib -Wl,-rpath=/home/jjh/anaconda3/envs/sgb/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/flatten_unflatten.o -L/home/jjh/anaconda3/envs/sgb/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/jjh/projects/SGB/apex/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/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_adam.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_adam.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [2/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_sgd_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_sgd_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [3/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_scale_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_scale_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [4/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_novograd.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_novograd.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [5/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb_stage_2.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb_stage_2.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [6/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_axpby_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_axpby_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [7/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_l2norm_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_l2norm_kernel.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [8/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb_stage_1.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb_stage_1.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | S_gcd(intmax_t m, intmax_t n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [9/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_lamb.cu -o /home/jjh/projects/SGB/apex/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_BFLOAT16_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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)))>::den == 1)> [with _Period2 = _Period2; _Rep = _Rep; _Period = _Period]’: /usr/include/c++/10/chrono:473:154: required from here /usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault 428 | _S_gcd(intmax_t __m, intmax_t __n) noexcept | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-10/README.Bugs for instructions. [10/10] c++ -MMD -MF /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/amp_C_frontend.o.d -pthread -B /home/jjh/anaconda3/envs/sgb/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/amp_C_frontend.cpp -o /home/jjh/projects/SGB/apex/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 '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -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/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13, from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/jjh/projects/SGB/apex/csrc/amp_C_frontend.cpp:1: /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas] 83 | #pragma omp parallel for if ((end - begin) >= grain_size) | ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build env=env) File "/home/jjh/anaconda3/envs/sgb/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 300, in extras_require=extras, File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run self.do_egg_install() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install self.run_command('bdist_egg') File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 164, in run cmd = self.call_command('install_lib', warn_dir=0) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command self.run_command(cmdname) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run self.build() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/install_lib.py", line 107, in build self.run_command('build_ext') File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions build_ext.build_extensions(self) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 202, in build_extension _build_ext.build_extension(self, ext) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension depends=ext.depends) File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile with_cuda=with_cuda) File "/home/jjh/anaconda3/envs/sgb/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 "/home/jjh/anaconda3/envs/sgb/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

Hello, I met the same problem in installation. Have you solved it?

qiaomu-miao avatar Jun 23 '22 23:06 qiaomu-miao

Some common problems & solutions when installing maskrcnn_benchmark.

1. THC.h: No such file or directory/THCeilDiv Undefined/ see this

2. identifier "THCudaCheck" is undefined see this

3. torch.utils.cpp_extension.load stuck see this

draym28 avatar Apr 03 '24 05:04 draym28