-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (21 loc) · 819 Bytes
/
makefile
File metadata and controls
31 lines (21 loc) · 819 Bytes
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
SHELL := /bin/bash
NODES := 16
EXEC := main nodes C.csv
default: build
## ----------------- Build -----------------
build: main.c
source /opt/nfs/config/source_bupc_2021.4.sh && upcc -gupc -Wc,"-fPIE" -network=udp -pthreads=4 ./main.c -o main
## ----------------- Create nodes -----------------
nodes:
/opt/nfs/config/station206_name_list.sh 1 16 > nodes
## Running
## ---------- Run with verbose ----------
run_verb:
source /opt/nfs/config/source_bupc_2021.4.sh && UPC_NODEFILE=nodes upcrun -c 4 -N 4 -n $(NODES) ./main -v
## ---------- Run without verbose ----------
run:
source /opt/nfs/config/source_bupc_2021.4.sh && UPC_NODEFILE=nodes upcrun -c 4 -N 4 -n $(NODES) ./main
## Cleaning
## ----------------- Clean -----------------
clean:
rm -f *.o $(EXEC)