mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
15 lines
500 B
CMake
15 lines
500 B
CMake
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND onnxruntime_target_platform STREQUAL "x86_64")
|
|
set(USE_NEURAL_SPEED TRUE)
|
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" AND onnxruntime_target_platform STREQUAL "x64")
|
|
set(USE_NEURAL_SPEED TRUE)
|
|
endif()
|
|
|
|
if(USE_NEURAL_SPEED)
|
|
FetchContent_Declare(
|
|
neural_speed
|
|
URL ${DEP_URL_neural_speed}
|
|
URL_HASH SHA1=${DEP_SHA1_neural_speed}
|
|
)
|
|
set(BTLA_USE_OPENMP OFF)
|
|
onnxruntime_fetchcontent_makeavailable(neural_speed)
|
|
endif()
|