forked from SciLifeLab/facs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (25 loc) · 1 KB
/
Makefile
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
.PHONY: tests valgrind
PROG=facs
all:$(PROG)
cd facs; make
mpi:
cd facs; make; make mpi
tests: python
cd tests && nosetests -v -s -P --with-timer
benchmarks: python
# XXX: Add a helper function that determines the number of cores present
cd tests && \
nosetests -v -s -P --with-timer test_simngs.py && \
export OMP_NUM_THREADS=1 && nosetests -v -s -P --with-timer test_basic.py && \
export OMP_NUM_THREADS=8 && nosetests -v -s -P --with-timer test_basic.py && \
export OMP_NUM_THREADS=16 && nosetests -v -s -P --with-timer test_basic.py && \
export OMP_NUM_THREADS=1 && nosetests -v -s -P --with-timer test_fastqscreen.py && \
export OMP_NUM_THREADS=8 && nosetests -v -s -P --with-timer test_fastqscreen.py && \
export OMP_NUM_THREADS=16 && nosetests -v -s -P --with-timer test_fastqscreen.py
valgrind: python
valgrind --tool=memcheck --suppressions=facs/utils/valgrind-python.supp nosetests -P -v -s
python: clean
python setup.py install
clean:
rm -rf build dist $(PROG).egg-info
cd facs; make clean