From 2cec89a0d38ec3f10a6868fbe60468c89316866b Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Mon, 4 Dec 2017 17:09:40 -0800 Subject: [PATCH] Add comment in Makefile OpenMP for MacOS Add a comment in util/Makefile for how to enable OpenMP for MacOS. Requires updated gcc or clang compile. Bug: None Test: /usr/local/bin/g++-7 -msse2 -O3 -fopenmp -static-libgcc -o psnr_omp psnr.cc ssim.cc psnr_main.cc Change-Id: Icb3389bf8cf94f09a185fea055c69823b9fbc66b time ./psnr_omp -ssim -s 1920 1080 ~/test/garden2_mp4.yuv ~/test/garden2_ogv.yuv Reviewed-on: https://chromium-review.googlesource.com/807546 Reviewed-by: Weiyong Yao Commit-Queue: Frank Barchard --- util/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/Makefile b/util/Makefile index 6044d2adf..40e74b650 100644 --- a/util/Makefile +++ b/util/Makefile @@ -4,3 +4,6 @@ ifeq ($(CXX),icl) else $(CXX) -msse2 -O3 -fopenmp -static -o psnr psnr.cc ssim.cc psnr_main.cc -Wl,--strip-all endif + +# for MacOS +# /usr/local/bin/g++-7 -msse2 -O3 -fopenmp -Bstatic -o psnr psnr.cc ssim.cc psnr_main.cc