Skip to content
Snippets Groups Projects
Commit 60e79c0e authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[skip ci][autotune] Use SHA256 in file anme generation

Unix has a hard 256 character limit on filenames. I have no idea
how to work around this except for applying a hash function.
parent 4635e8c2
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import os
import re
import subprocess
import filelock
import hashlib
def get_cmake_cache_entry(entry):
......@@ -193,6 +194,7 @@ def autotune_realization(sf):
basename = "autotune_sumfact_{}".format(sf.function_name)
name = os.path.join(dir, "autotune_sumfact_{}".format(sf.function_name))
name = hashlib.sha256(name.encode()).hexdigest()
filename = os.path.join(dir, "{}.cc".format(basename))
logname = os.path.join(dir, "{}.log".format(basename))
lock = "{}.lock".format(name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment