mlir-aie icon indicating copy to clipboard operation
mlir-aie copied to clipboard

aiecc should change working directory when running chesscc

Open fifield opened this issue 1 year ago • 2 comments

Currently chess runs in whatever working directory aiecc was invoked from, causing it to pollute that directory. Instead aiecc should change it's working directory to the tmpdir before running chess, then copy any user outputs (elfs, xclbin, ...) to the appropriate place.

fifield avatar Dec 07 '23 15:12 fifield

I suspect that chess leaves it's droppings in the same directory that the outputs appear in. So it might be better to not change the current directory, and just create temporary outputs in the tmpdir, then copy them where we want them. the key idea is to reduce the presence of unnecessary files in the file system.

stephenneuendorffer avatar Dec 07 '23 15:12 stephenneuendorffer

I would suggest a unique directory per Chess invocation under tmpdir otherwise we will fall into a race-condition nightmare.

keryell avatar Dec 07 '23 17:12 keryell