From 45514031440880a9eecd2a8461e6741569d8119a Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 30 Dec 2020 00:03:09 +0000 Subject: 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 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4788 Reviewed-by: Sang-Hoon Park Reviewed-by: Giorgio Arena Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- utils/GraphUtils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'utils/GraphUtils.cpp') 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(permuted_shape.x()), static_cast(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(permuted_shape.x()), static_cast(permuted_shape.y())); #endif // __arm__ // Fill the tensor with the JPEG content (BGR) -- cgit v1.2.1