From 47fce874eae7b2d419373c9ee5826ea4f4fcb2e8 Mon Sep 17 00:00:00 2001 From: James Ward Date: Thu, 10 Sep 2020 11:57:28 +0100 Subject: IVGCVSW-5294 Remove boost::format armnn backends * replaced with fmt::format * one case required std:stringstream instead Signed-off-by: James Ward Change-Id: Ife7c4cf5f143e43373f42edf6124158af132abc5 --- src/backends/cl/ClContextControl.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/backends/cl') diff --git a/src/backends/cl/ClContextControl.cpp b/src/backends/cl/ClContextControl.cpp index ebde68da8e..7ab825f59e 100644 --- a/src/backends/cl/ClContextControl.cpp +++ b/src/backends/cl/ClContextControl.cpp @@ -15,7 +15,7 @@ #include #include -#include +#include namespace cl { @@ -51,9 +51,9 @@ ClContextControl::ClContextControl(arm_compute::CLTuner *tuner, } catch (const cl::Error& clError) { - throw ClRuntimeUnavailableException(boost::str(boost::format( - "Could not initialize the CL runtime. Error description: %1%. CL error code: %2%" - ) % clError.what() % clError.err())); + throw ClRuntimeUnavailableException(fmt::format( + "Could not initialize the CL runtime. Error description: {0}. CL error code: {1}", + clError.what(), clError.err())); } // Removes the use of global CL context. @@ -149,9 +149,9 @@ void ClContextControl::DoLoadOpenClRuntime(bool updateTunedParameters) } catch (const cl::Error& clError) { - throw ClRuntimeUnavailableException(boost::str(boost::format( - "Could not initialize the CL runtime. Error description: %1%. CL error code: %2%" - ) % clError.what() % clError.err())); + throw ClRuntimeUnavailableException(fmt::format( + "Could not initialize the CL runtime. Error description: {0}. CL error code: {1}", + clError.what(), clError.err())); } // Note the first argument (path to cl source code) will be ignored as they should be embedded in the armcompute. -- cgit v1.2.1