Skip to content

Compiling error #94

@wangx1996

Description

@wangx1996

Hi, when I use the setup tool for compiling the cuda code, I meet this error:
/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

/home/wx/anaconda3/envs/pointpillar/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)

/home/wx/anaconda3/envs/pointpillar/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<int32_t>, )

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h(34): error: no suitable constructor exists to convert from "c10::ScalarType" to "c10::optionalc10::ScalarType"

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(148): error: no suitable constructor exists to convert from "c10::Layout" to "c10::optionalc10::Layout"

/home/wx/anaconda3/envs/pointpillar/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

/home/wx/anaconda3/envs/pointpillar/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

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(187): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optionalc10::MemoryFormat"

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional::optional [with T=c10::Device]" matches the argument list
argument types are: (const c10::Device)
detected during instantiation of "c10::optional<std::decay::type> c10::make_optional(T &&) [with T=const c10::Device &]"
/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(287): here

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional::optional [with T=caffe2::TypeMeta]" matches the argument list
argument types are: (const caffe2::TypeMeta)
detected during instantiation of "c10::optional<std::decay::type> c10::make_optional(T &&) [with T=const caffe2::TypeMeta &]"
/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(308): here

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional::optional [with T=c10::Layout]" matches the argument list
argument types are: (const c10::Layout)
detected during instantiation of "c10::optional<std::decay::type> c10::make_optional(T &&) [with T=const c10::Layout &]"
/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(324): here

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional::optional [with T=__nv_bool]" matches the argument list
argument types are: (const __nv_bool)
detected during instantiation of "c10::optional<std::decay::type> c10::make_optional(T &&) [with T=const __nv_bool &]"
/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(341): here

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional::optional [with T=c10::MemoryFormat]" matches the argument list
argument types are: (const c10::MemoryFormat)
detected during instantiation of "c10::optional<std::decay::type> c10::make_optional(T &&) [with T=const c10::MemoryFormat &]"
/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(388): here

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(430): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optionalc10::MemoryFormat"

/home/wx/anaconda3/envs/pointpillar/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

/home/wx/anaconda3/envs/pointpillar/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

/home/wx/anaconda3/envs/pointpillar/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

/home/wx/anaconda3/envs/pointpillar/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

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(604): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optionalc10::MemoryFormat"

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(807): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list
argument types are: (c10::Layout)
object type is: c10::TensorOptions

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1215): error: no instance of constructor "c10::optional::optional [with T=PyObject *]" matches the argument list
argument types are: (PyObject *)
detected during instantiation of "c10::optional<std::decay::type> c10::make_optional(T &&) [with T=PyObject *&]"
/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorImpl.h(1710): here

/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(684): error: class "std::enable_if<, c10::optionalc10::Device &>" has no member "type"
detected during instantiation of "c10::optional::operator= [with T=c10::Device]" based on template argument c10::Device
/home/wx/anaconda3/envs/pointpillar/lib/python3.8/site-packages/torch/include/c10/core/TensorImpl.h(1978): here

/home/wx/anaconda3/envs/pointpillar/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

what I used is ubuntu22.04, python 3.8, torch 1.11.0, cuda 11.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions