Skip to content

Commit

Permalink
Fix indentation in example
Browse files Browse the repository at this point in the history
  • Loading branch information
hanno-becker committed Mar 15, 2024
1 parent dc2d8ba commit 99d4fee
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,37 +1028,37 @@ def __init__(self, var="", arch=AArch64_Neon, target=Target_CortexA72, timeout=N

super().__init__(infile, name, rename=True, arch=arch, target=target, timeout=timeout)

def core(self, slothy):
conf = slothy.config.copy()
def core(self, slothy):
conf = slothy.config.copy()

slothy.config.sw_pipelining.enabled = True
slothy.config.sw_pipelining.minimize_overlapping = False
slothy.config.reserved_regs = [
f"x{i}" for i in range(0, 6)] + ["x30", "sp"]
slothy.config.reserved_regs += self.target_reserved
slothy.config.inputs_are_outputs = True
slothy.config.sw_pipelining.halving_heuristic = True
slothy.config.split_heuristic = True
slothy.config.split_heuristic_factor = 2
slothy.config.split_heuristic_repeat = 4
slothy.config.split_heuristic_stepsize = 0.1
slothy.config.constraints.stalls_first_attempt = 14
slothy.optimize_loop("layer1234_start")

slothy.config = conf.copy()

if self.timeout is not None:
slothy.config.timeout = self.timeout * 12

slothy.config.reserved_regs = [
f"x{i}" for i in range(0, 6)] + ["x30", "sp"]
slothy.config.inputs_are_outputs = True
slothy.config.reserved_regs += self.target_reserved
slothy.config.sw_pipelining.enabled = True
slothy.config.sw_pipelining.minimize_overlapping = False
slothy.config.sw_pipelining.halving_heuristic = False
slothy.config.split_heuristic = False
slothy.optimize_loop("layer5678_start")
slothy.config.sw_pipelining.enabled = True
slothy.config.sw_pipelining.minimize_overlapping = False
slothy.config.reserved_regs = [
f"x{i}" for i in range(0, 6)] + ["x30", "sp"]
slothy.config.reserved_regs += self.target_reserved
slothy.config.inputs_are_outputs = True
slothy.config.sw_pipelining.halving_heuristic = True
slothy.config.split_heuristic = True
slothy.config.split_heuristic_factor = 2
slothy.config.split_heuristic_repeat = 4
slothy.config.split_heuristic_stepsize = 0.1
slothy.config.constraints.stalls_first_attempt = 14
slothy.optimize_loop("layer1234_start")

slothy.config = conf.copy()

if self.timeout is not None:
slothy.config.timeout = self.timeout * 12

slothy.config.reserved_regs = [
f"x{i}" for i in range(0, 6)] + ["x30", "sp"]
slothy.config.inputs_are_outputs = True
slothy.config.reserved_regs += self.target_reserved
slothy.config.sw_pipelining.enabled = True
slothy.config.sw_pipelining.minimize_overlapping = False
slothy.config.sw_pipelining.halving_heuristic = False
slothy.config.split_heuristic = False
slothy.optimize_loop("layer5678_start")


class ntt_dilithium_1234(Example):
Expand Down

0 comments on commit 99d4fee

Please sign in to comment.