1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Christian Kastner <ckk@debian.org>
Date: Sun, 29 Jun 2025 15:37:40 +0200
Subject: Force host code resultion
This looks to be something that might have been fixed in a newer clang.
In file included from /package/build-area/rocfft-6.4.1/library/src/rocfft_kernel_config_search.cpp:32:
/package/build-area/rocfft-6.4.1/library/src/../../shared/CLI11.hpp:6569:47: error: reference to __device__ function 'operator delete' in __host__ function
6569 | std::shared_ptr<FormatterBase> formatter_{new Formatter()};
---
shared/CLI11.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/shared/CLI11.hpp b/shared/CLI11.hpp
index 56793f5..7ab47c3 100644
--- a/shared/CLI11.hpp
+++ b/shared/CLI11.hpp
@@ -6566,7 +6566,7 @@ class App {
Option *version_ptr_{nullptr};
/// This is the formatter for help printing. Default provided. INHERITABLE (same pointer)
- std::shared_ptr<FormatterBase> formatter_{new Formatter()};
+ std::shared_ptr<FormatterBase> formatter_ = std::make_shared<Formatter>();
/// The error message printing function INHERITABLE
std::function<std::string(const App *, const Error &e)> failure_message_{FailureMessage::simple};
@@ -6680,7 +6680,7 @@ class App {
Option *config_ptr_{nullptr};
/// This is the formatter for help printing. Default provided. INHERITABLE (same pointer)
- std::shared_ptr<Config> config_formatter_{new ConfigTOML()};
+ std::shared_ptr<Config> config_formatter_ = std::make_shared<ConfigTOML>();
///@}
|