aboutsummaryrefslogtreecommitdiff
path: root/utils/GraphUtils.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2020-12-30 00:03:09 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-01-13 17:00:15 +0000
commit45514031440880a9eecd2a8461e6741569d8119a (patch)
treecb1ade8c6d87a5092bdba66161350a5f5ccf286d /utils/GraphUtils.cpp
parentfefd16acf472dc7fddc57aab3773f2dec6602b20 (diff)
downloadComputeLibrary-45514031440880a9eecd2a8461e6741569d8119a.tar.gz
Add support for macOS
* Add 'macos' as an additional OS build option * Guard unsupported paths like thread scheduling control and hwcaps checking with the __APPLE__ macro * Map linker options to respective Mach-O linker options Change-Id: I67bd9fa3c20831427b218ca7d3b4b9d454ab4fec Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4788 Reviewed-by: Sang-Hoon Park <sang-hoon.park@arm.com> Reviewed-by: Giorgio Arena <giorgio.arena@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils/GraphUtils.cpp')
-rw-r--r--utils/GraphUtils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/GraphUtils.cpp b/utils/GraphUtils.cpp
index bfa28df880..20e1369e73 100644
--- a/utils/GraphUtils.cpp
+++ b/utils/GraphUtils.cpp
@@ -280,7 +280,8 @@ bool ImageAccessor::access_tensor(ITensor &tensor)
#else // __arm__
ARM_COMPUTE_EXIT_ON_MSG_VAR(image_loader->width() != permuted_shape.x() || image_loader->height() != permuted_shape.y(),
"Failed to load image file: dimensions [%d,%d] not correct, expected [%" PRIu64 ",%" PRIu64 "].",
- image_loader->width(), image_loader->height(), permuted_shape.x(), permuted_shape.y());
+ image_loader->width(), image_loader->height(),
+ static_cast<uint64_t>(permuted_shape.x()), static_cast<uint64_t>(permuted_shape.y()));
#endif // __arm__
// Fill the tensor with the PPM content (BGR)
@@ -363,7 +364,8 @@ bool ValidationInputAccessor::access_tensor(arm_compute::ITensor &tensor)
#else // __arm__
ARM_COMPUTE_EXIT_ON_MSG_VAR(jpeg.width() != permuted_shape.x() || jpeg.height() != permuted_shape.y(),
"Failed to load image file: dimensions [%d,%d] not correct, expected [%" PRIu64 ",%" PRIu64 "].",
- jpeg.width(), jpeg.height(), permuted_shape.x(), permuted_shape.y());
+ jpeg.width(), jpeg.height(),
+ static_cast<uint64_t>(permuted_shape.x()), static_cast<uint64_t>(permuted_shape.y()));
#endif // __arm__
// Fill the tensor with the JPEG content (BGR)