-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 1.08 KB
/
Makefile
File metadata and controls
36 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
gocfd:
go fmt ./...
go install -ldflags "-X main.GitVersion=$(git describe --tags --always --dirty)" ./...
@printf "run this -> %s\n" "$$GOPATH/bin/$@"
test:
go test -cover ./...
tidy:
go mod tidy
builder:
docker build -f Dockerfile_Ubuntu -t gcr.io/gocfd-275017/builder .
push:
docker push gcr.io/gocfd-275017/builder
generate:
go generate ./...
bench:
go test github.com/notargets/gocfd/model_problems/Euler2D/benchmarks/... -bench=GetFlowFunction
#go test github.com/notargets/gocfd/model_problems/Euler2D/benchmarks/... -bench=EulerSolve
deps:
sudo snap install go --classic
# Make sure OpenBLAS (with Fortran ABI) is on your system:
sudo apt update
sudo apt install libopenblas-dev liblapacke-dev gfortran
sudo apt install pkg-config libxxf86vm-dev libgl1-mesa-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libglfw3-dev
# Install the Netlib BLAS wrapper:
CGO_LDFLAGS="-lopenblas -lgfortran" go install gonum.org/v1/netlib/blas/netlib
# Install the Netlib LAPACK wrapper:
CGO_LDFLAGS="-lopenblas -lgfortran" go install gonum.org/v1/netlib/lapack/netlib