-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbooster_cpu.go
16 lines (14 loc) · 1.29 KB
/
booster_cpu.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main
/*
#cgo linux CFLAGS: -O3 -std=c17 -I. -fPIC -pthread -march=native -mtune=native -DNDEBUG -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DLOG_DISABLE_LOGS
#cgo darwin CFLAGS: -O3 -std=c17 -I. -fPIC -pthread -mcpu=native -DNDEBUG -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE -DACCELERATE_NEW_LAPACK -DACCELERATE_LAPACK_ILP64
#cgo linux CXXFLAGS: -O3 -std=c++17 -I. -Icommon -fPIC -pthread -march=native -mtune=native -DNDEBUG -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DLOG_DISABLE_LOGS
#cgo darwin CXXFLAGS: -O3 -std=c++17 -I. -Icommon -fPIC -pthread -mcpu=native -DNDEBUG -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE -DACCELERATE_NEW_LAPACK -DACCELERATE_LAPACK_ILP64
#cgo linux LDFLAGS: cpp/llama.o cpp/bridge.o cpp/janus.o cpp/ggml/src/ggml.o cpp/ggml/src/ggml-backend.o cpp/ggml/src/ggml-alloc.o cpp/ggml/src/ggml-quants.o ggml/src/ggml-aarch64.o cpp/sgemm.o cpp/unicode-data.o cpp/unicode.o -lstdc++ -lm -lpthread -ldl -lrt -fopenmp
#cgo darwin LDFLAGS: cpp/llama.o cpp/bridge.o cpp/janus.o cpp/ggml/src/ggml.o cpp/ggml/src/ggml-backend.o cpp/ggml/src/ggml-alloc.o cpp/ggml/src/ggml-quants.o ggml/src/ggml-aarch64.o -lstdc++ -framework Accelerate -framework Foundation
*/
import "C"
import "github.com/gotzmann/booster/pkg/booster"
func main() {
booster.Run()
}