mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
By turning on compatibility mode for protobuf, nnpack, PSimd and FP16, ittapi, TensorPipe and Gloo Update CMake requirements Revert 0ece461ccafe5649d2d0f058ff5477765fd56499 and b0901d62ae2c2e909f91401eacebf3731df20cbe to test that it actually works TODO: - Update/get rid of those libraries Fixes https://github.com/pytorch/pytorch/issues/150149 Pull Request resolved: https://github.com/pytorch/pytorch/pull/150203 Approved by: https://github.com/clee2000
24 lines
640 B
CMake
24 lines
640 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
set(TORCH_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../..)
|
|
set(TEST_ROOT ${TORCH_ROOT}/test/mobile/lightweight_dispatch)
|
|
|
|
add_executable(test_codegen_unboxing
|
|
${TEST_ROOT}/test_lightweight_dispatch.cpp
|
|
${TEST_ROOT}/test_codegen_unboxing.cpp
|
|
)
|
|
|
|
target_include_directories(test_codegen_unboxing PRIVATE ${ATen_CPU_INCLUDE})
|
|
|
|
target_compile_definitions(test_codegen_unboxing PRIVATE USE_GTEST)
|
|
|
|
set(TEST_UNBOXING_DEPENDENCIES torch gtest)
|
|
|
|
target_link_libraries(test_codegen_unboxing PRIVATE
|
|
${TEST_UNBOXING_DEPENDENCIES}
|
|
)
|
|
|
|
if(INSTALL_TEST)
|
|
install(TARGETS test_codegen_unboxing DESTINATION bin)
|
|
endif()
|