diff options
author | James Ward <james.ward@arm.com> | 2020-09-10 11:57:28 +0100 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2020-10-02 09:35:59 +0000 |
commit | 47fce874eae7b2d419373c9ee5826ea4f4fcb2e8 (patch) | |
tree | 0b20fa334ca59fbe848cbed26075e3991b8be4ba /src/backends/cl | |
parent | 58dec6bab3d8d588a37d93bafcada89947c9cd58 (diff) | |
download | armnn-47fce874eae7b2d419373c9ee5826ea4f4fcb2e8.tar.gz |
IVGCVSW-5294 Remove boost::format armnn backends
* replaced with fmt::format
* one case required std:stringstream instead
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Ife7c4cf5f143e43373f42edf6124158af132abc5
Diffstat (limited to 'src/backends/cl')
-rw-r--r-- | src/backends/cl/ClContextControl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <arm_compute/core/CL/CLKernelLibrary.h> #include <arm_compute/runtime/CL/CLScheduler.h> -#include <boost/format.hpp> +#include <fmt/format.h> 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. |