* static PGO compatible with llvm18 and add CI job to test static PGO on coremark benchmark * update comments and warning info, bitmaps section in llvm profdata shouldn't be used in PGO
25 lines
602 B
Bash
Executable File
25 lines
602 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
set -e
|
|
|
|
PLATFORM=$(uname -s | tr A-Z a-z)
|
|
|
|
IWASM="../../../product-mini/platforms/${PLATFORM}/build/iwasm"
|
|
WAMRC="../../../wamr-compiler/build/wamrc"
|
|
|
|
echo "Run coremark with native .."
|
|
./coremark.exe
|
|
|
|
echo "Run coremark with iwasm aot mode .."
|
|
${IWASM} coremark.aot
|
|
|
|
if [[ ${PLATFORM} == "linux" ]]; then
|
|
echo "Run coremark with iwasm aot-segue mode .."
|
|
${IWASM} coremark_segue.aot
|
|
fi
|
|
|
|
echo "Run coremark with iwasm interpreter mode .."
|
|
${IWASM} coremark.wasm
|