[flang-commits] [flang] [flang][runtime] Enable REAL printing in F18 offload runtime. (PR #87851)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Mon Apr 8 10:21:19 PDT 2024


https://github.com/vzakhari updated https://github.com/llvm/llvm-project/pull/87851

>From 4f5384d20e396c8f873a5f941855dca227b60156 Mon Sep 17 00:00:00 2001
From: Slava Zakharin <szakharin at nvidia.com>
Date: Fri, 5 Apr 2024 17:40:06 -0700
Subject: [PATCH] [flang][runtime] Enable REAL printing in F18 offload runtime.

---
 flang/runtime/edit-output.cpp | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/flang/runtime/edit-output.cpp b/flang/runtime/edit-output.cpp
index a06ed258f0f1d2..ce52ea64bd1a81 100644
--- a/flang/runtime/edit-output.cpp
+++ b/flang/runtime/edit-output.cpp
@@ -263,7 +263,6 @@ template <int KIND>
 RT_API_ATTRS decimal::ConversionToDecimalResult
 RealOutputEditing<KIND>::ConvertToDecimal(
     int significantDigits, enum decimal::FortranRounding rounding, int flags) {
-#if !defined(RT_DEVICE_COMPILATION)
   auto converted{decimal::ConvertToDecimal<binaryPrecision>(buffer_,
       sizeof buffer_, static_cast<enum decimal::DecimalConversionFlags>(flags),
       significantDigits, rounding, x_)};
@@ -273,10 +272,6 @@ RealOutputEditing<KIND>::ConvertToDecimal(
         sizeof buffer_);
   }
   return converted;
-#else // defined(RT_DEVICE_COMPILATION)
-  // TODO: enable Decimal library build for the device.
-  io_.GetIoErrorHandler().Crash("not implemented yet: decimal conversion");
-#endif // defined(RT_DEVICE_COMPILATION)
 }
 
 static RT_API_ATTRS bool IsInfOrNaN(const char *p, int length) {



More information about the flang-commits mailing list