[Openmp-commits] [openmp] [Libomptarget] Remove temporary files in AMDGPU JIT impl (PR #77980)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jan 15 05:29:35 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",
----------------
shiltian wrote:
No but that could only happen when multiple libraries are initialized all at once, or users explicitly dlopen libraries with OpenMP target offloading.
https://github.com/llvm/llvm-project/pull/77980
More information about the Openmp-commits
mailing list