Skip to content

Commit

Permalink
switched version of libtorch
Browse files Browse the repository at this point in the history
using the cxx11 ABI version of libtorch.  The other doesn't seem to work
with googletest.  This is the "second" link on the pytorch downloads
page.
  • Loading branch information
dhpollack committed Jan 16, 2020
1 parent b9221ef commit d029d10
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/get_third_party.sh
Expand Up @@ -6,7 +6,7 @@ mkdir -p third_party && cd third_party

THIRDPARTYLOCAL="local"
SENTENCEPIECEURI="https://github.com/google/sentencepiece.git"
LIBTORCHURI="https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.3.1%2Bcpu.zip"
LIBTORCHURI="https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.4.0%2Bcpu.zip"
BOOSTURI="https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz"
NLOHMANNURI="https://github.com/nlohmann/json.git"

Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -54,4 +54,3 @@ target_link_libraries(hflt PRIVATE
)
target_link_libraries(hflt-bin hflt)


2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Expand Up @@ -10,7 +10,7 @@ include_directories(${PROJECT_SOURCE_DIR})

set(SOURCES hflt_tests.cpp)
add_executable(hflt-gtest ${SOURCES})
target_link_libraries(hflt-gtest hflt gtest_main)
target_link_libraries(hflt-gtest hflt gtest_main gtest)
gtest_discover_tests(hflt-gtest WORKING_DIRECTORY $<TARGET_FILE_DIR:hflt-gtest>)

add_custom_command(TARGET hflt-gtest POST_BUILD
Expand Down

0 comments on commit d029d10

Please sign in to comment.