Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shunting314/c67c60c68160d22d415cf0fa16cbc081 to your computer and use it in GitHub Desktop.
Save shunting314/c67c60c68160d22d415cf0fa16cbc081 to your computer and use it in GitHub Desktop.
make[1]: *** [test_api/CMakeFiles/test_api.dir/all] Error 2
[ 96%] Linking CXX executable ../bin/test_tensorexpr
../lib/libtorch_cuda.so: undefined reference to `at::cuda::jit::jit_pwise_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libtorch_cuda.so: undefined reference to `torch::Library::Library(torch::Library::Kind, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, c10::optional<c10::DispatchKey>, char const*, unsigned int)'
../lib/libtorch_cuda.so: undefined reference to `at::cuda::jit::generate_reduction_code(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, bool, bool, int, int)'
../lib/libtorch_cuda.so: undefined reference to `c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
../lib/libtorch_cuda.so: undefined reference to `c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libtorch_cuda.so: undefined reference to `at::TensorBase::toString[abi:cxx11]() const'
../lib/libtorch_cuda.so: undefined reference to `at::cuda::jit::generate_code(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool, at::cuda::jit::BinaryFuncVariant, c10::SmallVector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, 1u>&, bool, int)'
../lib/libtorch_cuda.so: undefined reference to `c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libtorch_cuda.so: undefined reference to `c10::DeviceTypeName[abi:cxx11](c10::DeviceType, bool)'
../lib/libtorch_cuda.so: undefined reference to `c10::Warning::warn(c10::SourceLocation const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
test_tensorexpr/CMakeFiles/test_tensorexpr.dir/build.make:500: recipe for target 'bin/test_tensorexpr' failed
make[2]: *** [bin/test_tensorexpr] Error 1
CMakeFiles/Makefile2:10960: recipe for target 'test_tensorexpr/CMakeFiles/test_tensorexpr.dir/all' failed
make[1]: *** [test_tensorexpr/CMakeFiles/test_tensorexpr.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment