Commit 645c678
authored
Fix recorder dataset filename collision in shared /tmp (#469)
## Summary
- Always append a timestamp and rank to the recorder dataset filename
- Previously this was only done in distributed mode (to avoid HDF5 file
lock conflicts between ranks); now it also prevents permission errors
when multiple processes or repeated runs share `/tmp` in the container
- Non-distributed runs just get a `_rank0` suffix
`/tmp` is mounted and shared across container processes. All runs write
to `/tmp/isaaclab/logs/dataset.hdf5`. If the file was created by a
different process/user, subsequent runs get `PermissionError: [Errno 13]
Unable to synchronously create file`.
Signed-off-by: Clemens Volk <cvolk@nvidia.com>1 parent dcc7e03 commit 645c678
1 file changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
| 171 | + | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
0 commit comments