Skip to content

Commit

Permalink
add cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
victoryang00 committed Oct 16, 2023
1 parent 3e8c31b commit 963e9f5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "bench/clickhouse"]
path = bench/clickhouse
url = https://github.com/victoryang00/ClickHouse.git
[submodule "bench/llama"]
path = bench/llama
url = https://github.com/second-state/WasmEdge-WASINN-examples
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ set(WAMR_BUILD_JIT 0)
set(WAMR_BUILD_DEBUG_INTERP 0)
set(WAMR_BUILD_DEBUG_AOT 0)
set(WAMR_BUILD_FAST_JIT 0)
set(WAMR_BUILD_WASI_NN 0)
set(WAMR_BUILD_WASI_NN 1)
set(WAMR_BUILD_LIBC_BUILTIN 1)
set(WAMR_BUILD_LIBC_WASI 1)
set(WAMR_BUILD_DUMP_CALL_STACK 1)
Expand Down
7 changes: 7 additions & 0 deletions bench/bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ static void BM_clickhouse(benchmark::State& state) {
}
BENCHMARK(BM_clickhouse);

static void BM_llama(benchmark::State& state) {
for (auto _ : state) {
// Your code to benchmark goes here
}
}
BENCHMARK(BM_llama);

BENCHMARK_MAIN();
1 change: 1 addition & 0 deletions bench/llama
Submodule llama added at b82598

0 comments on commit 963e9f5

Please sign in to comment.