Commit bd9d71f6 authored by Ondrej Vysocky's avatar Ondrej Vysocky

ENH not complete tool #40

parent 9d58255e
COMPILER=INTEL
#COMPILER=GCC
ifeq ($(COMPILER),INTEL)
CC=icpc
MPICC=mpiicpc
OPENMP=-qopenmp
else #ifeq($(COMPILER),GCC)
CC=g++
MPICC=mpic++
OPENMP=-fopenmp
endif
################################################################################
X86ADAPT=-L/usr/local/lib -lx86_adapt
################################################################################
default: all
all:
$(CC) -O0 -g staticMERICtool.cpp $(X86ADAPT) -DSTART -o energyMeasureStart
$(CC) -O0 -g staticMERICtool.cpp $(X86ADAPT) -DSTOP -o energyMeasureStop
######
mpiTest: test_mpi.cpp
$(MPICC) -O0 -g test_mpi.cpp $(MERIC) -lmericmpi -lrt $(OPENMP) $(HDEEM) $(FREEIPMI) $(X86ADAPT) $(CPUFREQ) $(PAPI) -o test_mpi
basicTest: test.cpp
$(CC) -O0 -g test.cpp $(MERIC) -lmeric -lrt $(OPENMP) $(HDEEM) $(FREEIPMI) $(X86ADAPT) $(CPUFREQ) $(PAPI) -o test -DUSE_MERIC
samplesTest: samples_test.cpp
$(CC) -O0 -g samples_test.cpp $(MERIC) -lmeric -lrt $(OPENMP) $(HDEEM) $(FREEIPMI) $(X86ADAPT) $(CPUFREQ) $(PAPI) -o samples
blasTest: blas_test.c
$(info )
$(info WARNING: Makefile loads mkl module that is necessary for BLAS test )
$(info )
module load mkl;
$(CC) -O0 -g blas_test.c $(MERIC) -lmeric -mkl -lrt $(OPENMP) $(HDEEM) $(FREEIPMI) $(X86ADAPT) $(CPUFREQ) $(PAPI) -o blasTest
######
MeasurementDIRS=hdeemMeasurement* TEST* TESTMPI*
clean:
rm -rf ${BINARIES} *.csv *.o *~ *.out *.qsub
cleanAll:
make clean
rm -rf $(MeasurementDIRS) *.tmp
######
run:
./test
mpirun -n 4 -genv I_MPI_DEBUG=5 ./test_mpi
srun:
srun -N 1 -c 24 --tasks-per-node=1 --exclusive -p haswell --x11 --pty bash
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment