Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f3a9a831 authored by Nicolas Derumigny's avatar Nicolas Derumigny
Browse files

benchmakr/common: updating according to reviews

parent c8b11b59
No related branches found
No related tags found
1 merge request!3benchmark/common: using argument-provided location for MEM_AREAs
......@@ -1202,7 +1202,7 @@ class _Benchmark_Runner:
SCRATCH_REG_4 = out.scratch_register(3)
SCRATCH_REG_5 = out.scratch_register(4)
# Set of registers that are currently used, but will not during the execution
# of the kernel (=> used only during initialisation), and reverse
# of the kernel (=> used only during initialisation)
unused_registers_kernel = set()
from pipedream.asm.x86 import RDX
......@@ -1346,11 +1346,14 @@ class _Benchmark_Runner:
out.comment("push papi_event_set and papi_results")
if need_memory:
out.comment("poping first mem_area regs")
out.pop_from_stack(MEMORY_REG_STORE)
out.pop_from_stack(MEMORY_REG_LOAD)
out.comment('"real" push')
out.push_to_stack(papi_event_set)
out.push_to_stack(results)
if need_memory:
out.comment("pushing back mem_area regs")
out.push_to_stack(MEMORY_REG_LOAD)
out.push_to_stack(MEMORY_REG_STORE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment