[Openmp-commits] [openmp] [Libomptarget] Remove temporary files in AMDGPU JIT impl (PR #77980)

Jan Patrick Lehr via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 15 04:43:53 PST 2024


================
@@ -1999,21 +2000,27 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
 
     // TODO: We should try to avoid materialization but there seems to be no
     // good linker interface w/o file i/o.
-    SmallString<128> LinkerOutputFilePath;
-    std::error_code EC = sys::fs::createTemporaryFile(
-        "amdgpu-pre-link-jit", ".out", LinkerOutputFilePath);
+    SmallString<128> LinkerInputFilePath;
+    std::error_code EC = sys::fs::createTemporaryFile("amdgpu-pre-link-jit",
----------------
jplehr wrote:

Does this "guarantee" uniqueness in a multi-threaded / multi-process environment?

https://github.com/llvm/llvm-project/pull/77980


More information about the Openmp-commits mailing list