[Openmp-commits] [openmp] [openmp] Fixed Support for VA for record-replay. (PR #70396)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Sat Oct 28 11:18:13 PDT 2023


================
@@ -647,6 +647,21 @@ struct GenericDeviceTy : public DeviceAllocatorTy {
   Error queryAsync(__tgt_async_info *AsyncInfo);
   virtual Error queryAsyncImpl(__tgt_async_info &AsyncInfo) = 0;
 
+  /// Check whether the architecture supports VA management
+  virtual bool supportVAManagement() const { return false; }
+
+  /// Get the total device memory size
+  virtual Error getDeviceMemorySize(uint64_t &DSize);
+
+  /// Allocates \p RSize bytes (rounded up to page size) and hints the driver to
+  /// map it to \p VAddr. The obtained address is stored in \p Addr. At return
+  /// \p RSize contains the actual size which can be equal or larget than the
----------------
jdoerfert wrote:

Typo: larger

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


More information about the Openmp-commits mailing list