From b9cfa46c925b52a02df41c39c07a25f1d218b7a9 Mon Sep 17 00:00:00 2001 From: Lucas Hosseini Date: Tue, 25 Aug 2020 16:56:01 -0700 Subject: [PATCH] Fix guard clause on get_mem_usage_kb(). (#1371) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1371 Test Plan: Imported from OSS Reviewed By: mdouze Differential Revision: D23314741 Pulled By: beauby fbshipit-source-id: f64e80fbb24bac25134a3d619845839274db898b --- faiss/utils/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faiss/utils/utils.cpp b/faiss/utils/utils.cpp index a5116b336..be822e93f 100644 --- a/faiss/utils/utils.cpp +++ b/faiss/utils/utils.cpp @@ -121,11 +121,11 @@ size_t get_mem_usage_kb () return sz; } -#elif __APPLE__ +#else size_t get_mem_usage_kb () { - fprintf(stderr, "WARN: get_mem_usage_kb not implemented on the mac\n"); + fprintf(stderr, "WARN: get_mem_usage_kb not implemented on current architecture\n"); return 0; }