From 387df65a5db65a53c940ea94d4b73f9ea712e3cd Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Fri, 15 Sep 2023 22:14:07 -0400 Subject: [PATCH] link libomp.a on mac --- src/Makefile | 4 ++-- src/pybind11 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index be3c25ed..9ebd8f73 100644 --- a/src/Makefile +++ b/src/Makefile @@ -110,10 +110,10 @@ ifeq ($(findstring _NT-,$(PLATFORM)), _NT-) MEXLINKLIBS="\$$LINKLIBS" export CC CXX else ifeq ($(findstring Darwin,$(PLATFORM)), Darwin) - CUDA_STATIC=--cudart static /usr/local/lib/libomp.a + CUDA_STATIC=--cudart static OMP=-Xclang -fopenmp CPPOPT+=$(OMP) - LINKOPT+=-L/usr/local/lib + LINKOPT+=/usr/local/lib/libomp.a INCLUDEDIRS+=-I/usr/local/include else CPPOPT+=$(OMP) diff --git a/src/pybind11 b/src/pybind11 index 2d59b43c..a8b3ff30 160000 --- a/src/pybind11 +++ b/src/pybind11 @@ -1 +1 @@ -Subproject commit 2d59b43cbf8793119fb92726ce8eb33441469e3e +Subproject commit a8b3ff30f9649459021adc80f98a945d3ac675a5