[Openmp-commits] [openmp] [OpenMP] Enable automatic unified shared memory on MI300A. (PR #77512)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 11 10:51:40 PST 2024


================
@@ -219,6 +219,9 @@ int32_t __tgt_rtl_initialize_record_replay(int32_t DeviceId, int64_t MemorySize,
                                            void *VAddr, bool isRecord,
                                            bool SaveOutput,
                                            uint64_t &ReqPtrArgOffset);
+
+// Returns true if the device \p DeviceId suggests to use auto zero-copy.
+int32_t __tgt_rtl_use_auto_zero_copy(int32_t DeviceId);
----------------
jhuber6 wrote:

Unrelated, but we really need a common method to get target specific information. Something I'm planning on working on when we try to do the whole offload thing. 

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


More information about the Openmp-commits mailing list