[clang] [NFC][clang-repl] Introduce OffloadType for CUDA/HIP device selection (PR #231391)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 00:24:20 PDT 2026
================
@@ -46,6 +46,8 @@ class Decl;
class IncrementalParser;
class IncrementalDeviceParser;
+enum class OffloadType { CUDA, HIP };
----------------
vgvassilev wrote:
```suggestion
enum class OffloadType { Detect, CUDA, HIP };
```
Most of the time it is a single vendor device -- that would be convenient for users if we can implement it reliably.
https://github.com/llvm/llvm-project/pull/231391
More information about the cfe-commits
mailing list