File: rules

package info (click to toggle)
dbcsr 2.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,836 kB
  • sloc: fortran: 54,534; ansic: 7,060; python: 3,482; cpp: 2,431; sh: 1,639; f90: 1,178; lisp: 689; makefile: 633
file content (25 lines) | stat: -rwxr-xr-x 679 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe
export OMPI_MCA_btl_tcp_if_include=lo

-include /usr/share/mpi-default-dev/debian_defaults

DEB_BUILD_MULTIARCH?=$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
DEB_HOST_ARCH?=$(shell dpkg-architecture -qDEB_HOST_ARCH)

%:
	dh $@ --buildsystem=cmake

ifneq (,$(filter $(DEB_HOST_ARCH), armel hppa riscv64))
execute_before_dh_auto_configure:
	rm -f tests/inputs/test_H2O.perf
	grep -v dbcsr_unittest2 tests/CMakeLists.txt | sponge tests/CMakeLists.txt
endif

override_dh_auto_configure:
	dh_auto_configure -- -DTEST_MPI_RANKS=1

override_dh_auto_test:
	dh_auto_test --no-parallel