This commit is contained in:
Michael Zhang 2023-10-07 20:02:34 -05:00
parent 4cbd2b4a17
commit dd1d3fa504
2 changed files with 11 additions and 1 deletions

View file

@ -1,6 +1,7 @@
lc_openmp lc_openmp
lc_pthreads lc_pthreads
*.o *.o
*.tar.gz
dataset dataset
out.txt out.txt

View file

@ -1,4 +1,4 @@
.PHONY: all .PHONY: all watch-openmp clean
CFLAGS := -std=c11 -fopenmp=libomp -I/opt/homebrew/opt/libomp/include CFLAGS := -std=c11 -fopenmp=libomp -I/opt/homebrew/opt/libomp/include
LDFLAGS := -std=c11 -fopenmp=libomp -L/opt/homebrew/opt/libomp/lib LDFLAGS := -std=c11 -fopenmp=libomp -L/opt/homebrew/opt/libomp/lib
@ -6,6 +6,15 @@ RUST_SOURCES := $(shell find . -name "*.rs")
all: lc_openmp lc_pthreads all: lc_openmp lc_pthreads
clean:
rm -rf lc_openmp lc_pthreads zhan4854 zhan4854.tar.gz *.o
zhan4854.tar.gz: common.c common.h lc_openmp.c lc_pthreads.c Makefile
mkdir -p zhan4854
mv $^ zhan4854
tar -czvf $@ zhan4854
rm -r zhan4854
watch-openmp: watch-openmp:
watchexec -c clear -e Makefile,c,h 'make lc_openmp && ./lc_openmp ./dataset/small_data.csv ./dataset/small_label.csv 10 2' watchexec -c clear -e Makefile,c,h 'make lc_openmp && ./lc_openmp ./dataset/small_data.csv ./dataset/small_label.csv 10 2'