onnxruntime/cmake/external/ipp-crypto.cmake
Valery Chernov 8ba8146650
[TVM] handshake mechanism for support of TVMso EP (#11437)
* infrastructure for handshake mechanism was implemented. sha256 was selected as first hash algorithm

* check hash during compile in TVMso EP

* add IPP-CRYPTO to external dependencies for TVM EP

* made checkHash method constant

* removed the public implementation of the SHA-256 algorithm so as not to cause a license conflict

* implemented SHA-256 calculation using ipp-crypto library

* fix dependency for ipp-crypto

* add provider options for hash check

* update documentation for added provider options

* add hash check condition

* fix docs

* fix lint

* fix ORT_THROW

Co-authored-by: Valery Chernov <valery.chernov@deelvin.com>
Co-authored-by: KJlaccHoeUM9l <wotpricol@mail.ru>
2022-06-29 14:57:18 +02:00

17 lines
466 B
CMake

if (onnxruntime_USE_TVM)
message(STATUS "onnxruntime_USE_TVM: Fetch ipp-crypto for TVM EP")
FetchContent_Declare(
ipp_crypto
GIT_REPOSITORY https://github.com/intel/ipp-crypto.git
GIT_TAG ippcp_2021.5
)
FetchContent_GetProperties(ipp_crypto)
if(NOT ipp_crypto_POPULATED)
FetchContent_Populate(ipp_crypto)
endif()
set(ipp_crypto_INCLUDE_DIRS ${ipp_crypto_SOURCE_DIR}/include)
endif()