-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add coremark as a program to test and a program builder script
The section 'target_features' needs to be implemented to work with wasi-clang compilation. Add build_programs.py. Signed-off-by: Ádám László Kulcsár <[email protected]>
- Loading branch information
1 parent
cf9333d
commit 944f194
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright 2023-present Samsung Electronics Co., Ltd. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import argparse | ||
import os | ||
|
||
from os.path import abspath, dirname, join | ||
|
||
PROGRAMS_SOURCE_DIR = dirname(abspath(__file__)) | ||
|
||
def compile_coremark(): | ||
return | ||
|
||
def parse_args(): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument("--all", help="compile all programs", action="store_true", default=True) | ||
parser.add_argument("--coremark", help="compile coremark", action="store_true") | ||
parser.add_argument("--summary", help="Generate summary", action="store_true", default=False) | ||
args = parser.parse_args() | ||
|
||
args.orig_results = args.results.copy() | ||
return args | ||
|
||
def main(): | ||
args = parse_args() | ||
|
||
if args.all: | ||
compile_coremark() | ||
|
||
print("All programs compiled succesfully!") | ||
return | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters