[PATCH] D146389: [clang-repl][CUDA] Initial interactive CUDA support for clang-repl

Vassil Vassilev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 4 09:06:59 PDT 2023


v.g.vassilev added a comment.

Thanks for working on this!



================
Comment at: clang/lib/Interpreter/Offload.cpp:1
+//===-------------- Offload.cpp - CUDA Offloading ---------------*- C++ -*-===//
+//
----------------
How about `DeviceOffload.cpp`?


================
Comment at: clang/tools/clang-repl/ClangRepl.cpp:135
+        std::move(CI), std::move(DeviceCI), OffloadArch,
+        "/tmp/clang-repl.fatbin"));
+
----------------
To cover the case where platforms have no `/tmp` we could use `fs::createTemporaryFile`. However, some platforms have read-only file systems. What do we do there?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146389/new/

https://reviews.llvm.org/D146389



More information about the cfe-commits mailing list