@@ -22,6 +22,7 @@ DEFAULT_WORKLOADS = {
22
22
}
23
23
24
24
# 2. Add build logic for your workload type
25
+ # no the build logic is done in the yaml fil need to udpat ehat
25
26
elif workload_type == " my-benchmark" :
26
27
# Your build logic here
27
28
benchmarks = get_my_benchmark_list()
@@ -213,7 +214,7 @@ def build_my_benchmark(bench_name, workload_path, cc, base_cflags, platform, boa
213
214
# Compile
214
215
obj_file = f " /workloads/bin/ { board} / { bench_name} .o "
215
216
compile_cmd = [cc, " -c" ] + cflags + [" -o" , obj_file, str (bench_file)]
216
- run_cmd(compile_cmd, f " Failed to compile { bench_name } " )
217
+ run_cmd(compile_cmd)
217
218
218
219
# Link
219
220
exe_path = f " /workloads/bin/ { board} / { bench_name} "
@@ -225,7 +226,7 @@ def build_my_benchmark(bench_name, workload_path, cc, base_cflags, platform, boa
225
226
else :
226
227
link_cmd = [cc] + base_cflags.split() + [" -o" , exe_path, obj_file] + [" -lm" ]
227
228
228
- run_cmd(link_cmd, f " Failed to link { bench_name } " )
229
+ run_cmd(link_cmd)
229
230
return exe_path
230
231
```
231
232
@@ -446,11 +447,11 @@ def build_my_benchmark(bench_name, workload_path, cc, base_cflags, platform, boa
446
447
# Use g++ for C++ files
447
448
compiler = cc.replace(" gcc" , " g++" ) if source_file.suffix == " .cpp" else cc
448
449
compile_cmd = [compiler, " -c" ] + cflags + [" -o" , obj_file, str (source_file)]
449
- run_cmd(compile_cmd, f " Failed to compile { source_file } " )
450
+ run_cmd(compile_cmd)
450
451
451
452
# Link all objects
452
453
link_cmd = [cc] + base_cflags.split() + [" -o" , exe_path] + obj_files + env_objs + [" -lc" , " -lm" ]
453
- run_cmd(link_cmd, f " Failed to link { bench_name } " )
454
+ run_cmd(link_cmd)
454
455
```
455
456
456
457
## Example: Adding CoreMark
0 commit comments