I am trying to install esim_torch as instructed but unable to build wheels for esim-cuda and getting the following error:
ERROR: Command errored out with exit status 1:
command: /home/rishabh/anaconda3/envs/vid2e/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-tk48ulrq/setup.py'"'"'; file='"'"'/tmp/pip-req-build-tk48ulrq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-56sjj7xj
cwd: /tmp/pip-req-build-tk48ulrq/
Complete output (73 lines):
running bdist_wheel
running build
running build_ext
building 'esim_cuda' extension
creating build
creating build/temp.linux-x86_64-3.7
/usr/bin/nvcc -I/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include -I/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/TH -I/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/THC -I/home/rishabh/anaconda3/envs/vid2e/include/python3.7m -c esim_cuda_kernel.cu -o build/temp.linux-x86_64-3.7/esim_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=esim_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_50,code=sm_50 -std=c++11
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(36): error: identifier "__builtin_ia32_monitorx" is undefined
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(42): error: identifier "__builtin_ia32_mwaitx" is undefined
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/c10/util/Half-inl.h(21): error: identifier "__half_as_short" is undefined
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/c10/core/TensorTypeSet.h(44): warning: integer conversion resulted in a change of sign
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h(180): warning: constexpr function return is non-constant
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/torch/csrc/jit/argument_spec.h(68): error: static assertion failed with "ArgumentInfo is to be a POD struct"
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/profiler.h(97): warning: attribute "visibility" does not apply here
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/profiler.h(112): warning: attribute "visibility" does not apply here
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/pybind11/detail/common.h(694): error: function call must have a constant value in a constant expression
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/pybind11/detail/descr.h(59): error: expression must have a constant value
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/pybind11/cast.h(1889): warning: nonstandard use of "auto" to both deduce the type from an initializer and to announce a trailing return type
/usr/include/c++/5/bits/hashtable.h(1526): error: no instance of overloaded function "std::forward" matches the argument list
argument types are: (std::string)
detected during:
instantiation of "std::pair<std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::iterator, __nv_bool> std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_emplace(std::true_type, _Args &&) [with _Key=std::string, _Value=std::pair<const std::string, size_t>, _Alloc=std::allocator<std::pair<const std::string, size_t>>, _ExtractKey=std::__detail::_Select1st, _Equal=std::equal_tostd::string, _H1=std::hashstd::string, _H2=std::__detail::_Mod_range_hashing, _Hash=std::__detail::_Default_ranged_hash, _RehashPolicy=std::__detail::_Prime_rehash_policy, _Traits=std::__umap_traits, _Args=<std::string, std::size_t>]"
(726): here
instantiation of "std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__ireturn_type std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::emplace(_Args &&...) [with _Key=std::string, _Value=std::pair<const std::string, size_t>, _Alloc=std::allocator<std::pair<const std::string, size_t>>, _ExtractKey=std::__detail::_Select1st, _Equal=std::equal_tostd::string, _H1=std::hashstd::string, _H2=std::__detail::_Mod_range_hashing, _Hash=std::__detail::_Default_ranged_hash, _RehashPolicy=std::__detail::_Prime_rehash_policy, _Traits=std::__umap_traits, _Args=<std::string, std::size_t>]"
/usr/include/c++/5/bits/unordered_map.h(380): here
instantiation of "std::pair<std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::_not<std::_and<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash>>>::value, false, true>>::iterator, __nv_bool> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::emplace(_Args &&...) [with _Key=std::string, _Tp=size_t, _Hash=std::hashstd::string, _Pred=std::equal_tostd::string, _Alloc=std::allocator<std::pair<const std::string, size_t>>, _Args=<std::string, unsigned long>]"
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h(363): here
instantiation of "Value &torch::OrderedDict<Key, Value>::insert(K &&, V &&) [with Key=std::string, Value=std::shared_ptrtorch::nn::Module, K=std::string, V=std::shared_ptrtorch::nn::Module]"
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h(369): here
instantiation of "Value &torch::OrderedDict<Key, Value>::insert(Key, Value &&) [with Key=std::string, Value=std::shared_ptrtorch::nn::Module]"
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/module.h(615): here
instantiation of "std::shared_ptr torch::nn::Module::register_module(std::string, std::shared_ptr) [with ModuleType=torch::nn::Module]"
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/container/modulelist.h(92): here
/usr/include/c++/5/bits/hashtable.h(1565): error: no instance of overloaded function "std::forward" matches the argument list
argument types are: (void *)
detected during:
instantiation of "std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_emplace(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator, std::false_type, _Args &&) [with _Key=const void *, _Value=std::pair<const void *const, pybind11::detail::instance *>, _Alloc=std::allocator<std::pair<const void *const, pybind11::detail::instance *>>, _ExtractKey=std::__detail::_Select1st, _Equal=std::equal_to<const void *>, _H1=std::hash<const void *>, _H2=std::__detail::_Mod_range_hashing, _Hash=std::__detail::_Default_ranged_hash, _RehashPolicy=std::__detail::_Prime_rehash_policy, _Traits=std::__ummap_traits, _Args=<void *&, pybind11::detail::instance *&>]"
(671): here
instantiation of "std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_emplace(std::false_type, _Args &&...) [with _Key=const void *, _Value=std::pair<const void *const, pybind11::detail::instance *>, _Alloc=std::allocator<std::pair<const void *const, pybind11::detail::instance *>>, _ExtractKey=std::__detail::_Select1st, _Equal=std::equal_to<const void *>, _H1=std::hash<const void *>, _H2=std::__detail::_Mod_range_hashing, _Hash=std::__detail::_Default_ranged_hash, _RehashPolicy=std::__detail::_Prime_rehash_policy, _Traits=std::__ummap_traits, _Args=<void *&, pybind11::detail::instance *&>]"
(726): here
instantiation of "std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__ireturn_type std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::emplace(_Args &&...) [with _Key=const void *, _Value=std::pair<const void *const, pybind11::detail::instance *>, _Alloc=std::allocator<std::pair<const void *const, pybind11::detail::instance *>>, _ExtractKey=std::__detail::_Select1st, _Equal=std::equal_to<const void *>, _H1=std::hash<const void *>, _H2=std::__detail::_Mod_range_hashing, _Hash=std::__detail::_Default_ranged_hash, _RehashPolicy=std::__detail::_Prime_rehash_policy, _Traits=std::__ummap_traits, _Args=<void *&, pybind11::detail::instance *&>]"
/usr/include/c++/5/bits/unordered_map.h(1128): here
instantiation of "std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::iterator std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::emplace(_Args &&...) [with _Key=const void *, _Tp=pybind11::detail::instance *, _Hash=std::hash<const void *>, _Pred=std::equal_to<const void *>, _Alloc=std::allocator<std::pair<const void *const, pybind11::detail::instance *>>, _Args=<void *&, pybind11::detail::instance *&>]"
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/pybind11/detail/class.h(218): here
/usr/include/c++/5/bits/hashtable.h(1526): error: no instance of overloaded function "std::forward" matches the argument list
argument types are: (PyTypeObject *)
detected during:
instantiation of "std::pair<std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::iterator, __nv_bool> std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_emplace(std::true_type, _Args &&) [with _Key=PyTypeObject *, _Value=std::pair<PyTypeObject *const, std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>>, _Alloc=std::allocator<std::pair<PyTypeObject *const, std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>>>, _ExtractKey=std::__detail::_Select1st, _Equal=std::equal_to<PyTypeObject *>, _H1=std::hash<PyTypeObject *>, _H2=std::__detail::_Mod_range_hashing, _Hash=std::__detail::_Default_ranged_hash, _RehashPolicy=std::__detail::_Prime_rehash_policy, _Traits=std::__umap_traits, _Args=<PyTypeObject *&, std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>>]"
(726): here
instantiation of "std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__ireturn_type std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::emplace(_Args &&...) [with _Key=PyTypeObject *, _Value=std::pair<PyTypeObject *const, std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>>, _Alloc=std::allocator<std::pair<PyTypeObject *const, std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>>>, _ExtractKey=std::__detail::_Select1st, _Equal=std::equal_to<PyTypeObject *>, _H1=std::hash<PyTypeObject *>, _H2=std::__detail::_Mod_range_hashing, _Hash=std::__detail::_Default_ranged_hash, _RehashPolicy=std::__detail::_Prime_rehash_policy, _Traits=std::__umap_traits, _Args=<PyTypeObject *&, std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>>]"
/usr/include/c++/5/bits/unordered_map.h(380): here
instantiation of "std::pair<std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::_not<std::_and<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash>>>::value, false, true>>::iterator, __nv_bool> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::emplace(_Args &&...) [with _Key=PyTypeObject *, _Tp=std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>, _Hash=std::hash<PyTypeObject *>, _Pred=std::equal_to<PyTypeObject *>, _Alloc=std::allocator<std::pair<PyTypeObject *const, std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>>>, _Args=<PyTypeObject *&, std::vector<pybind11::detail::type_info *, std::allocator<pybind11::detail::type_info *>>>]"
/home/rishabh/anaconda3/envs/vid2e/lib/python3.7/site-packages/torch/include/pybind11/pybind11.h(1619): here
esim_cuda_kernel.cu(39): warning: variable "i0" was declared but never referenced
detected during instantiation of "void count_events_cuda_forward_kernel(const scalar_t *, const scalar_t *, scalar_t *, int64_t *, int, int, int, float, float) [with scalar_t=float]"
(152): here
9 errors detected in the compilation of "/tmp/tmpxft_0000183f_00000000-7_esim_cuda_kernel.cpp1.ii".
error: command '/usr/bin/nvcc' failed with exit status 2
ERROR: Failed building wheel for esim-cuda
I request @danielgehrig18 and others to please help me out to rectify this issue!