Skip to content

Commit

Permalink
[llvm] Use hidden file name for lockfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Dec 9, 2021
1 parent b9acc4c commit 65a6da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler_gym/envs/llvm/datasets/cbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _make_cBench_validator(
def validator_cb(env: "LlvmEnv") -> Optional[ValidationError]: # noqa: F821
"""The validation callback."""
with _CBENCH_DOWNLOAD_THREAD_LOCK:
with fasteners.InterProcessLock(cache_path("cbench-v1-runtime-data.LOCK")):
with fasteners.InterProcessLock(cache_path(".cbench-v1-runtime-data.LOCK")):
download_cBench_runtime_data()

cbench_data = site_data_path("llvm-v0/cbench-v1-runtime-data/runtime_data")
Expand Down Expand Up @@ -557,7 +557,7 @@ def __init__(self, site_data_base: Path):
def install(self):
super().install()
with _CBENCH_DOWNLOAD_THREAD_LOCK:
with fasteners.InterProcessLock(cache_path("cbench-v1-runtime-data.LOCK")):
with fasteners.InterProcessLock(cache_path(".cbench-v1-runtime-data.LOCK")):
download_cBench_runtime_data()


Expand Down

0 comments on commit 65a6da8

Please sign in to comment.