-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
Description
The simulation runner writes to the cache file, even though that is not necessary.
When setting the cache file to read-only, the following exception is thrown:
Traceback (most recent call last):
File "/var/scratch/sheldens/miniconda3/lib/python3.12/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "/var/scratch/sheldens/accuracy-tuning-paper/plots/run_tournament.py", line 171, in simulate_run
return simulator.run(threshold, strategy_name, strategy_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/scratch/sheldens/accuracy-tuning-paper/plots/run_tournament.py", line 83, in run
results, env = kernel_tuner.tune_kernel(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/scratch/sheldens/miniconda3/lib/python3.12/site-packages/kernel_tuner/interface.py", line 666, in tune_kernel
util.process_cache(cache, kernel_options, tuning_options, runner)
File "/var/scratch/sheldens/miniconda3/lib/python3.12/site-packages/kernel_tuner/util.py", line 1161, in process_cache
cached_data = read_cache(cache)
^^^^^^^^^^^^^^^^^
File "/var/scratch/sheldens/miniconda3/lib/python3.12/site-packages/kernel_tuner/util.py", line 1221, in read_cache
filestr = correct_open_cache(cache, open_cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/scratch/sheldens/miniconda3/lib/python3.12/site-packages/kernel_tuner/util.py", line 1213, in correct_open_cache
with open(cache, "w") as cachefile:
^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'cache_cp_2048x2048_NVIDIA-A100-PCIE-40GB.json'