Closed zhourui-xihu closed 7 months ago
Had the same problem with a 3080Ti.
Basically all Ampere cards will get this error.
I upgraded pytorch (also torchvision & torchaudio) version to latest release and it ran just fine.
Thank you very much.
Do you encounter this kind of error when testing?
Exception has occurred: RuntimeError Error building extension 'fused': [1/2] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1013\" -isystem /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include -isystem /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/TH -isystem /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/THC -isystem /data/home/zhourui/miniconda3/envs/diffusion/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 --compiler-options '-fPIC' -std=c++14 -c /data/home/zhourui/code/sgmse-main-rev/sgmse/backbones/ncsnpp_utils/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o FAILED: fused_bias_act_kernel.cuda.o /usr/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1013\" -isystem /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include -isystem /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/TH -isystem /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/THC -isystem /data/home/zhourui/miniconda3/envs/diffusion/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 --compiler-options '-fPIC' -std=c++14 -c /data/home/zhourui/code/sgmse-main-rev/sgmse/backbones/ncsnpp_utils/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o /usr/include/c++/11/type_traits(1406): error: type name is not allowed
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
/usr/include/c++/11/type_traits(1406): error: identifier "__is_same" is undefined
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Metaprogramming.h(425): error: no instance of constructor "std::tuple<_T1, _T2>::tuple [with _T1=int32_t &&, _T2=int32_t]" matches the argument list argument types are: (int32_t, int)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Metaprogramming.h(423): error: no instance of overloaded function "c10::guts::detail::extract_tuple_element_by_index" matches the argument list
argument types are: (std::tuple
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h(35): error: no suitable constructor exists to convert from "c10::ScalarType" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(148): error: no suitable constructor exists to convert from "c10::Layout" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(177): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(182): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list argument types are: (c10::ScalarType) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(187): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(430): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(568): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(573): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(579): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list argument types are: (c10::Layout) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(598): error: no instance of overloaded function "c10::TensorOptions::requires_grad" matches the argument list argument types are: (__nv_bool) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(604): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(828): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list argument types are: (c10::Layout) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(684): error: class "std::enable_if<
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/DeprecatedTypeProperties.h(99): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(31): error: no instance of constructor "c10::impl::InlineDeviceGuard
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(50): error: more than one instance of overloaded function "c10::impl::InlineDeviceGuard
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(158): error: class "std::enable_if<
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(156): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(163): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard
/usr/include/c++/11/type_traits(2585): error: class "std::enable_if<
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h(77): error: more than one instance of constructor "c10::complex
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h(86): error: more than one instance of constructor "c10::complex
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h(98): error: more than one user-defined conversion from "c10::complex
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (uint8_t, __nv_bool)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int8_t, __nv_bool)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int16_t, __nv_bool)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int, __nv_bool)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int64_t, __nv_bool)
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::complex
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::complex
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional<__nv_bool>, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional<__nv_bool>, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::NameType, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::NameType, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::NameType, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/Dimname.h(20): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::NameType, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/Dimname.h(20): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Symbol, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Symbol, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Symbol, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/Dimname.h(41): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Symbol, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/Dimname.h(41): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Dimname, _Up=at::Dimname]"
/usr/include/c++/11/bits/stl_vector.h(401): here
instantiation of class "std::vector<_Tp, _Alloc> [with _Tp=at::Dimname, _Alloc=std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Dimname, _Up=at::Dimname]"
/usr/include/c++/11/bits/stl_vector.h(401): here
instantiation of class "std::vector<_Tp, _Alloc> [with _Tp=at::Dimname, _Alloc=std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Dimname , _Up=at::Dimname ]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/NamedTensor.h(44): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Dimname , _Up=at::Dimname ]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/NamedTensor.h(44): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(209): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(209): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::DimnameList, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::DimnameList, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::DimnameList, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::DimnameList, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=const at::Dimname , _Up=at::Dimname ]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(235): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=const at::Dimname , _Up=at::Dimname ]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(235): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Layout, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Layout, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(508): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::atomic
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::atomic
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::atomic
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::atomic
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorBase, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorBase, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorBase, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorBase, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorList, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorList, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorList, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorList, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Tensor, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Tensor, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Tensor, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Tensor, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
Error limit reached. 100 errors detected in the compilation of "/data/home/zhourui/code/sgmse-main-rev/sgmse/backbones/ncsnpp_utils/op/fused_bias_act_kernel.cu". Compilation terminated. ninja: build stopped: subcommand failed. subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
File "/data/home/zhourui/code/sgmse-main-rev/sgmse/backbones/ncsnpp_utils/op/fused_act.py", line 11, in
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
/usr/include/c++/11/type_traits(1406): error: identifier "__is_same" is undefined
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Metaprogramming.h(425): error: no instance of constructor "std::tuple<_T1, _T2>::tuple [with _T1=int32_t &&, _T2=int32_t]" matches the argument list argument types are: (int32_t, int)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Metaprogramming.h(423): error: no instance of overloaded function "c10::guts::detail::extract_tuple_element_by_index" matches the argument list
argument types are: (std::tuple
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h(35): error: no suitable constructor exists to convert from "c10::ScalarType" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(148): error: no suitable constructor exists to convert from "c10::Layout" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(177): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(182): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list argument types are: (c10::ScalarType) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(187): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(430): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(568): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(573): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(579): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list argument types are: (c10::Layout) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(598): error: no instance of overloaded function "c10::TensorOptions::requires_grad" matches the argument list argument types are: (__nv_bool) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(604): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(828): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list argument types are: (c10::Layout) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(684): error: class "std::enable_if<
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/DeprecatedTypeProperties.h(99): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(31): error: no instance of constructor "c10::impl::InlineDeviceGuard
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(50): error: more than one instance of overloaded function "c10::impl::InlineDeviceGuard
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(158): error: class "std::enable_if<
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(156): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(163): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard
/usr/include/c++/11/type_traits(2585): error: class "std::enable_if<
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h(77): error: more than one instance of constructor "c10::complex
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h(86): error: more than one instance of constructor "c10::complex
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h(98): error: more than one user-defined conversion from "c10::complex
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (uint8_t, __nv_bool)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int8_t, __nv_bool)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int16_t, __nv_bool)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int, __nv_bool)
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(39): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list argument types are: (int64_t, __nv_bool)
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::complex
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::complex
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::ArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional<__nv_bool>, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional<__nv_bool>, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::NameType, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::NameType, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::NameType, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/Dimname.h(20): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::NameType, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/Dimname.h(20): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Symbol, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Symbol, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Symbol, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/Dimname.h(41): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Symbol, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/Dimname.h(41): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Dimname, _Up=at::Dimname]"
/usr/include/c++/11/bits/stl_vector.h(401): here
instantiation of class "std::vector<_Tp, _Alloc> [with _Tp=at::Dimname, _Alloc=std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Dimname, _Up=at::Dimname]"
/usr/include/c++/11/bits/stl_vector.h(401): here
instantiation of class "std::vector<_Tp, _Alloc> [with _Tp=at::Dimname, _Alloc=std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Dimname , _Up=at::Dimname ]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/NamedTensor.h(44): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Dimname , _Up=at::Dimname ]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/NamedTensor.h(44): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(209): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>, _Up=c10::in_place_t]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(209): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::DimnameList, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::DimnameList, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::DimnameList, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::DimnameList, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=const at::Dimname , _Up=at::Dimname ]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(235): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=const at::Dimname , _Up=at::Dimname ]" /data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(235): here
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Layout, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::Layout, _Up=c10::OptionalArrayRef
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::vector<int64_t, std::allocator
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h(508): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list argument types are: (caffe2::TypeMeta) object type is: c10::TensorOptions
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::atomic
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::atomic
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::atomic
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=std::atomic
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorBase, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorBase, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorBase, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorBase, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorList, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorList, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorList, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::TensorList, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during instantiation of class "std::is_same<_Tp, _Up> [with _Tp=c10::nullopt_t, _Up=c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Tensor, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Tensor, _Up=c10::nullopt_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(567): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Tensor, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
detected during:
instantiation of class "std::is_same<_Tp, _Up> [with _Tp=at::Tensor, _Up=c10::in_place_t]"
/data/home/zhourui/miniconda3/envs/diffusion/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(570): here
instantiation of class "c10::optional
Error limit reached. 100 errors detected in the compilation of "/data/home/zhourui/code/sgmse-main-rev/sgmse/backbones/ncsnpp_utils/op/fused_bias_act_kernel.cu". Compilation terminated. ninja: build stopped: subcommand failed.
We have just updated the code to PyTorch 2.X and Lightning 2.X to ensure support for newer GPUs. Please run the code again after you have created a virtual environment with the new requirements.
I ran the code on Nvidia a100 gpu and reported the following error:
UserWarning: NVIDIA A100-SXM4-80GB with CUDA capability sm_80 is not compatible with the curr ent PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70. If you want to use the NVIDIA A100-SXM4-80GB GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/
warnings.warn(incompatible_device_warn.format(device_name, capability, " ".joi n(arch_list), device_name)) Traceback (most recent call last): File "/data/home/zhourui/miniconda3/envs/diff/lib/python3.8/site-packages/torc h/utils/cpp_extension.py", line 1808, in _run_ninja_build subprocess.run( File "/data/home/zhourui/miniconda3/envs/diff/lib/python3.8/subprocess.py", li ne 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "train.py", line 11, in
from sgmse.backbones.shared import BackboneRegistry
File "/data/home/zhourui/code/sgmse-main/sgmse/backbones/init.py", line 2, in
from .ncsnpp import NCSNpp
File "/data/home/zhourui/code/sgmse-main/sgmse/backbones/ncsnpp.py", line 18, in
from .ncsnpp_utils import layers, layerspp, normalization
File "/data/home/zhourui/code/sgmse-main/sgmse/backbones/ncsnpp_utils/layerspp .py", line 20, in
from . import up_or_down_sampling
File "/data/home/zhourui/code/sgmse-main/sgmse/backbones/ncsnpp_utils/up_or_do wn_sampling.py", line 10, in
from .op import upfirdn2d
File "/data/home/zhourui/code/sgmse-main/sgmse/backbones/ncsnpp_utils/op/ini t.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "/data/home/zhourui/code/sgmse-main/sgmse/backbones/ncsnpp_utils/op/fused _act.py", line 11, in
fused = load(
File "/data/home/zhourui/miniconda3/envs/diff/lib/python3.8/site-packages/torc h/utils/cpp_extension.py", line 1202, in load
return _jit_compile(
File "/data/home/zhourui/miniconda3/envs/diff/lib/python3.8/site-packages/torc h/utils/cpp_extension.py", line 1425, in _jit_compile
_write_ninja_file_and_build_library(
File "/data/home/zhourui/miniconda3/envs/diff/lib/python3.8/site-packages/torc h/utils/cpp_extension.py", line 1537, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/data/home/zhourui/miniconda3/envs/diff/lib/python3.8/site-packages/torc h/utils/cpp_extension.py", line 1824, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'fused': [1/2] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER _TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi10 11\" -isystem /data/home/zhourui/miniconda3/envs/diff/lib/python3.8/site-package s/torch/include -isystem /data/home/zhourui/miniconda3/envs/diff/lib/python3.8/s ite-packages/torch/include/torch/csrc/api/include -isystem /data/home/zhourui/mi niconda3/envs/diff/lib/python3.8/site-packages/torch/include/TH -isystem /data/h ome/zhourui/miniconda3/envs/diff/lib/python3.8/site-packages/torch/include/THC - isystem /usr/local/cuda/include -isystem /data/home/zhourui/miniconda3/envs/diff /include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DC UDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_O PERATORS --expt-relaxed-constexpr -gencode=arch=compute_70,code=compute_70 -ge ncode=arch=compute_70,code=sm_70 --compiler-options '-fPIC' -std=c++14 -c /data/ home/zhourui/code/sgmse-main/sgmse/backbones/ncsnpp_utils/op/fused_bias_act_kern el.cu -o fused_bias_act_kernel.cuda.o
FAILED: fused_bias_act_kernel.cuda.o
/usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTEN SION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBI ND11_BUILD_ABI=\"_cxxabi1011\" -isystem /data/home/zhourui/miniconda3/envs/diff/ lib/python3.8/site-packages/torch/include -isystem /data/home/zhourui/miniconda3 /envs/diff/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isy stem /data/home/zhourui/miniconda3/envs/diff/lib/python3.8/site-packages/torch/i nclude/TH -isystem /data/home/zhourui/miniconda3/envs/diff/lib/python3.8/site-pa ckages/torch/include/THC -isystem /usr/local/cuda/include -isystem /data/home/zh ourui/miniconda3/envs/diff/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA _NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERS IONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=comp ute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 --compiler-options '- fPIC' -std=c++14 -c /data/home/zhourui/code/sgmse-main/sgmse/backbones/ncsnpp_ut ils/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
In file included from /usr/local/cuda/include/cuda_runtime.h:83,
from :
/usr/local/cuda/include/crt/host_config.h:139:2: error: #error -- unsupported GN U version! gcc versions later than 10 are not supported! The nvcc flag '-allow-u nsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
139 | #error -- unsupported GNU version! gcc versions later than 10 are not su pported! The nvcc flag '-allow-unsupported-compiler' can be used to override thi s version check; however, using an unsupported host compiler may cause compilati on failure or incorrect run time execution. Use at your own risk.
| ^~~~~
ninja: build stopped: subcommand failed.