зеркало из https://github.com/microsoft/SEAL.git
Merge pull request #308 from s0l0ist/add-wasm-benchmark
Add WASM benchmark
This commit is contained in:
Коммит
8ee5c6cf99
|
@ -42,6 +42,10 @@ if(SEAL_BUILD_BENCH)
|
|||
endif()
|
||||
|
||||
add_executable(sealbench)
|
||||
# If we're targeting WASM, add the appropriate link flags
|
||||
if(EMSCRIPTEN)
|
||||
set_target_properties(sealbench PROPERTIES LINK_FLAGS "-flto -O3 -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB")
|
||||
endif()
|
||||
target_sources(sealbench
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_LIST_DIR}/bench.cpp
|
||||
|
|
Загрузка…
Ссылка в новой задаче