зеркало из https://github.com/microsoft/SEAL.git
Update to HEXL v1.2.2
This commit is contained in:
Родитель
47ee6969b3
Коммит
183c67b022
|
@ -223,7 +223,7 @@ if(SEAL_USE_INTEL_HEXL)
|
|||
message(STATUS "Intel HEXL: download ...")
|
||||
seal_fetch_thirdparty_content(ExternalIntelHEXL)
|
||||
else()
|
||||
find_package(HEXL 1.2.1)
|
||||
find_package(HEXL 1.2.2)
|
||||
if (NOT TARGET HEXL::hexl)
|
||||
message(FATAL_ERROR "Intel HEXL: not found")
|
||||
endif()
|
||||
|
|
|
@ -116,7 +116,7 @@ The optional dependencies and their tested versions (other versions may work as
|
|||
|
||||
| Optional dependency | Tested version | Use |
|
||||
| ------------------------------------------------------ | -------------- | ------------------------------------------------ |
|
||||
| [Intel HEXL](https://github.com/intel/hexl) | 1.2.1 | Acceleration of low-level kernels |
|
||||
| [Intel HEXL](https://github.com/intel/hexl) | 1.2.2 | Acceleration of low-level kernels |
|
||||
| [Microsoft GSL](https://github.com/microsoft/GSL) | 3.1.0 | API extensions |
|
||||
| [ZLIB](https://github.com/madler/zlib) | 1.2.11 | Compressed serialization |
|
||||
| [Zstandard](https://github.com/facebook/zstd) | 1.4.5 | Compressed serialization (much faster than ZLIB) |
|
||||
|
|
|
@ -5,7 +5,7 @@ FetchContent_Declare(
|
|||
hexl
|
||||
PREFIX hexl
|
||||
GIT_REPOSITORY https://github.com/intel/hexl
|
||||
GIT_TAG f976b7d820a605973819863cb201a0e1a4ecf96b # beyond 1.2.1
|
||||
GIT_TAG 1.2.2
|
||||
)
|
||||
FetchContent_GetProperties(hexl)
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace seal
|
|||
#endif
|
||||
|
||||
#ifdef SEAL_USE_INTEL_HEXL
|
||||
intel::hexl::EltwiseReduceMod(result, poly, coeff_count, modulus.value(), 0, 1);
|
||||
intel::hexl::EltwiseReduceMod(result, poly, coeff_count, modulus.value(), modulus.value(), 1);
|
||||
#else
|
||||
SEAL_ITERATE(
|
||||
iter(poly, result), coeff_count, [&](auto I) { get<1>(I) = barrett_reduce_64(get<0>(I), modulus); });
|
||||
|
|
Загрузка…
Ссылка в новой задаче