Skip to content

Commit

Permalink
add keccak x1
Browse files Browse the repository at this point in the history
  • Loading branch information
mkannwischer committed Jul 10, 2024
1 parent c27d260 commit c4c232a
Show file tree
Hide file tree
Showing 2 changed files with 525 additions and 0 deletions.
20 changes: 20 additions & 0 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,25 @@ def core(self, slothy):
slothy.config.split_heuristic_repeat = 1
slothy.optimize(start="loop_0", end="end_loop_0")
slothy.optimize(start="loop_1", end="end_loop_1")

class neon_keccak_x1(Example):
def __init__(self, var="", arch=AArch64_Neon, target=Target_CortexA55):
name = "keccak_f1600_x1_scalar_slothy"
infile = "keccak_f1600_x1_scalar_slothy"

if var != "":
name += f"_{var}"
infile += f"_{var}"
name += f"_{target_label_dict[target]}"

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

def core(self, slothy):
slothy.config.inputs_are_outputs = True
slothy.config.variable_size = True

slothy.optimize(start="loop", end="end_loop")

#############################################################################################


Expand Down Expand Up @@ -1533,6 +1552,7 @@ def main():
fft_fixedpoint_radix4(),
# Keccak
neon_keccak_x4(),
neon_keccak_x1(),
]

all_example_names = [e.name for e in examples]
Expand Down
Loading

0 comments on commit c4c232a

Please sign in to comment.