[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
Fri Apr 5 17:41:31 PDT 2024
https://github.com/vzakhari created https://github.com/llvm/llvm-project/pull/87851
None
>From 893b28e942f4637ee97a0cca0967e8fb658dc797 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