ggerganov commited on
Commit
fd68d89
·
1 Parent(s): 67be3ed

Fix Makefile for MacBook Intel

Browse files
Files changed (1) hide show
  1. Makefile +7 -6
Makefile CHANGED
@@ -6,7 +6,7 @@ UNAME_M := $(shell uname -m)
6
  # Compile flags
7
  #
8
 
9
- CFLAGS = -O3 -std=c11
10
  CXXFLAGS = -O3 -std=c++11
11
 
12
  CFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-unused-function
@@ -24,15 +24,16 @@ ifeq ($(UNAME_S),Darwin)
24
  endif
25
 
26
  # Architecture specific
27
- ifeq ($(UNAME_P),x86_64)
 
28
  CFLAGS += -mavx -mavx2 -mfma -mf16c
29
  endif
30
- ifneq ($(filter arm%,$(UNAME_P)),)
31
  # Mac M1
32
  endif
33
- ifneq ($(filter aarch64%,$(UNAME_P)),)
34
- endif
35
- ifneq ($(filter armv6%,$(UNAME_M)),)
36
  # Raspberry Pi 1, 2, 3
37
  CFLAGS += -mfpu=neon-fp-armv8 -mfp16-format=ieee -mno-unaligned-access
38
  endif
 
6
  # Compile flags
7
  #
8
 
9
+ CFLAGS = -O3 -std=c11
10
  CXXFLAGS = -O3 -std=c++11
11
 
12
  CFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-unused-function
 
24
  endif
25
 
26
  # Architecture specific
27
+ # TODO: probably these flags need to be tweaked on some architectures
28
+ ifeq ($(UNAME_M),x86_64)
29
  CFLAGS += -mavx -mavx2 -mfma -mf16c
30
  endif
31
+ ifneq ($(filter arm%,$(UNAME_M)),)
32
  # Mac M1
33
  endif
34
+ ifneq ($(filter aarch64%,$(UNAME_M)),)
35
+ endif
36
+ ifneq ($(filter armv6%,$(UNAME_M)),)
37
  # Raspberry Pi 1, 2, 3
38
  CFLAGS += -mfpu=neon-fp-armv8 -mfp16-format=ieee -mno-unaligned-access
39
  endif