mirror of
https://github.com/karpathy/llm.c.git
synced 2026-07-28 20:35:09 -04:00
fixed homebrew path for intel based macs
This commit is contained in:
parent
a08c11b60e
commit
47b2f9312c
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
|
@ -19,6 +19,12 @@ ifeq ($(shell uname), Darwin)
|
|||
LDLIBS += -lomp
|
||||
INCLUDES += -I/opt/homebrew/opt/libomp/include
|
||||
$(info NICE Compiling with OpenMP support)
|
||||
else ifeq ($(shell [ -d /usr/local/opt/libomp/lib ] && echo "exists"), exists)
|
||||
CFLAGS += -Xclang -fopenmp -DOMP
|
||||
LDFLAGS += -L/usr/local/opt/libomp/lib
|
||||
LDLIBS += -lomp
|
||||
INCLUDES += -I/usr/local/opt/libomp/include
|
||||
$(info NICE Compiling with OpenMP support)
|
||||
else
|
||||
$(warning OOPS Compiling without OpenMP support)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue