This repository has been archived on 2022-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
HPC/Project1/project_1_maggioni_claudio/membench/Makefile

31 lines
518 B
Makefile
Raw Normal View History

2022-09-27 06:39:49 +00:00
#
# Usage:
# make # run benchmark on the local machine or on cluster compute node
# # operated by SLURM
#
.PRECIOUS: %.gp %.xxx %.out
#generic: generic.ps
generic: membench
membench: membench.c
gcc -O3 -o membench membench.c
clean:
make generic.clean
%.ps: membench %.gp
sbatch ./run_membench.sh $*
module load gnuplot
gnuplot %.gp
%.gp: gnuplot.template
sed -e '/sarlacc/ s//$*/' gnuplot.template > $*.gp
%.clean:
rm -f $*.ps $*.gp $*.xxx *.out membench
tar:
cd ../; tar cf membench.tar membench/*