On 22/02/2019 22:10, Vanzo, Davide wrote:
Hello all!
I am trying to build PyTorch-0.3.1 with intelcuda-2017b but I am hitting
the error I reported below. Has anybody seen anything similar before?
/tmp/PyTorch/0.3.1/intelcuda-2017b-Python-3.6.3/pytorch-0.3.1/torch/lib/THD/base/data_channels/Store.cpp(44):
error: no instance of overloaded function "std::vector<_Tp,
_Alloc>::push_back [with _Tp=pollfd, _Alloc=std::allocator<pollfd>]"
matches the argument list
argument types are: ({...})
object type is: std::vector<pollfd, std::allocator<pollfd>>
fds.push_back({ .fd = _listen_socket, .events = POLLIN });
^
/opt/easybuild/software/Core/GCCcore/6.4.0/include/c++/6.4.0/bits/stl_vector.h(932):
note: this candidate was rejected because arguments do not match
push_back(value_type&& __x)
^
/opt/easybuild/software/Core/GCCcore/6.4.0/include/c++/6.4.0/bits/stl_vector.h(914):
note: this candidate was rejected because arguments do not match
push_back(const value_type& __x)
^
/tmp/PyTorch/0.3.1/intelcuda-2017b-Python-3.6.3/pytorch-0.3.1/torch/lib/THD/base/data_channels/Store.cpp(44):
internal error: assertion failed at: "shared/cfe/edgcpfe/exprutil.c",
line 747
fds.push_back({ .fd = _listen_socket, .events = POLLIN });
^
compilation aborted for
/tmp/PyTorch/0.3.1/intelcuda-2017b-Python-3.6.3/pytorch-0.3.1/torch/lib/THD/base/data_channels/Store.cpp
(code 4)
Can you share the easyconfig file, so we can try to reproduce this?
It's probably the Intel compilers being a bit picky here, wouldn't be
the first time...
Looks like it may just need some convincing with a cast or something?
My C++ is too rusty to quickly figure this out though...
Maybe this helps:
https://www.reddit.com/r/cpp_questions/comments/6cohwk/no_instance_of_overloaded_function_vector_problem/
.
regards,
Kenneth