-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
linked error of Pytorch 1.0 release #15291
Comments
I'm getting the same error as well if I set |
@llv22 Thanks for reporting the issue. Can you post back with the output of @hoonkai Can you do the same? I'm curious to find out why this problem persists, even if you build with |
@pietern sorry for late response, just check with github notification. conda list > pytorch.txt output is attached as follow: thanks again for your check-up |
@llv22 Thank you. Can you share the CMake configuration summary (printed after executing). That should tell us where MPI gets included in the build. I don't know where the runtime problem comes from, though, since it is installed as a Conda package, so its directory should be in the library path.. |
@pietern here are the building trace In [1]: import torch
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-eb42ca6e4af3> in <module>
----> 1 import torch
~/miniconda3/lib/python3.6/site-packages/torch/__init__.py in <module>
82 pass
83
---> 84 from torch._C import *
85
86 __all__ += [name for name in dir(_C)
ImportError: dlopen(/Users/llv23/miniconda3/lib/python3.6/site-packages/torch/_C.cpython-36m-darwin.so, 9): Symbol not found: _ompi_mpi_char
Referenced from: /Users/llv23/miniconda3/lib/python3.6/site-packages/torch/lib/libtorch_python.dylib
Expected in: flat namespace
in /Users/llv23/miniconda3/lib/python3.6/site-packages/torch/lib/libtorch_python.dylib And I also found that there raised up quite a lot of error in the final stage of building for packaging. Thanks a lot for checking, and looking forward to your reply |
@llv22 Thanks for proving the build logs. It looks like MPI is pulled in through THD. This is |
@pietern you mean I update to pyTorch 1.1, OK. don't close the ticket, I will build it and past result here. |
@llv22 Sounds good. Let us know what happens :-) |
FAILED: c10/test/CMakeFiles/c10_string_view_test.dir/util/string_view_test.cpp.o
/Applications/Xcode-8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DIDEEP_USE_MKL -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -D_FILE_OFFSET_BITS=64 -Iaten/src -I../aten/src -I. -I../ -I../cmake/../third_party/benchmark/include -Icaffe2/contrib/aten -I../third_party/onnx -Ithird_party/onnx -I../third_party/foxi -Ithird_party/foxi -I../c10/.. -isystem ../cmake/../third_party/googletest/googlemock/include -isystem ../cmake/../third_party/googletest/googletest/include -isystem ../third_party/protobuf/src -isystem /Users/llv23/miniconda3/include -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -isystem ../third_party -isystem ../cmake/../third_party/eigen -isystem /Users/llv23/miniconda3/include/python3.6m -isystem /Users/llv23/miniconda3/lib/python3.6/site-packages/numpy/core/include -isystem ../cmake/../third_party/pybind11/include -isystem /opt/rocm/hip/include -isystem /include -isystem ../cmake/../third_party/cub -isystem /usr/local/cuda/include -isystem ../third_party/ideep/mkl-dnn/include -isystem ../third_party/ideep/include -isystem ../third_party/googletest/googlemock/include -isystem ../third_party/googletest/googlemock -isystem ../third_party/googletest/googletest/include -isystem ../third_party/googletest/googletest -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -Xpreprocessor -fopenmp -I/usr/local/include -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-invalid-partial-specialization -Wno-typedef-redefinition -Wno-unknown-warning-option -Wno-unused-private-field -Wno-inconsistent-missing-override -Wno-aligned-allocation-unavailable -Wno-c++14-extensions -Wno-constexpr-not-const -Wno-missing-braces -Qunused-arguments -fcolor-diagnostics -fno-math-errno -fno-trapping-math -Wno-unused-private-field -Wno-missing-braces -Wno-c++14-extensions -Wno-constexpr-not-const -O3 -isysroot /Applications/Xcode-8.3.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.13 -fPIE -DCUDA_HAS_FP16=1 -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD -std=gnu++11 -MD -MT c10/test/CMakeFiles/c10_string_view_test.dir/util/string_view_test.cpp.o -MF c10/test/CMakeFiles/c10_string_view_test.dir/util/string_view_test.cpp.o.d -o c10/test/CMakeFiles/c10_string_view_test.dir/util/string_view_test.cpp.o -c ../c10/test/util/string_view_test.cpp
../c10/test/util/string_view_test.cpp:682:15: error: static_assert expression is not an integral constant expression
static_assert(1 == string_view("abc").find('b'), "");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../c10/util/string_view.h:548:39: note: non-constexpr function 'forward<c10::basic_string_view<char>::charIsEqual_>' cannot be used in a constant expression
: find_first_if_(pos + 1, std::forward<Condition>(condition));
^
../c10/util/string_view.h:359:12: note: in call to '&"abc"->find_first_if_(0, c10::basic_string_view<char>::charIsEqual_{ch})'
return find_first_if_(pos, charIsEqual_{ch});
^
../c10/test/util/string_view_test.cpp:682:39: note: in call to '&"abc"->find(98, 0)'
static_assert(1 == string_view("abc").find('b'), "");
^
/Applications/Xcode-8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1677:1: note: declared here
forward(typename std::remove_reference<_Tp>::type& __t) _NOEXCEPT @pietern My mac setting as follow: Can we have some tricks to sidestep such compilation error? looking forwards to your reply |
@pietern so any hints for the suggested version for C++14? |
I'm don't use Xcode myself so don't know what the best version is. I do know that 10.13 is a couple years old and think that upgrading both macOs and Xcode should probably do the trick... |
@pietern OK, I will try to figure out later, and let me you the status.In case having chance to fix, will close this ticket then. ^_^thanks |
You need at least XCode 9.0 to compile PyTorch. Also note that each CUDA version only supports exactly one XCode version. Possible combinations are
Other XCode versions might also work if they use the same clang compiler version as the XCode version officially supported by a CUDA version (I've for example seen XCode 9.0 + CUDA 9.2 working) but they're not officially supported by CUDA. Note that we're about to remove support for XCode 9.2. Probably starting with PyTorch 1.5, you will need at least XCode 9.4. |
@smessmer great, really brilliant information. I will check and update status here. But perhaps a little delay as too busy recent months. ^_^ |
馃悰 Bug
To Reproduce
Steps to reproduce the behavior:
Environment
conda
,pip
, source): condaError as follow:
The text was updated successfully, but these errors were encountered: