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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/architecture.mk
include /usr/share/mpi-default-dev/debian_defaults
FAILED=debian/failed
ifeq ($(ARCH_DEFAULT_MPI_IMPL),openmpi)
OPENMPI=yes
else
OPENMPI=no
endif
OMPT_ARCHS = amd64 arm64 ppc64el riscv64 loong64
CONFIGURE_ENV=
CONFIGURE=-DCMAKE_INSTALL_INCLUDEDIR=/usr/include/$(DEB_HOST_MULTIARCH)
CONFIGURE_ENV+=CUPTI_ROOT=/usr
CONFIGURE+=-DEZTRACE_ENABLE_CUDA=ON
#export NVCCFLAGS = "-ccbin clang-5.0"
#export NVCCFLAGS = "-ccbin gcc-7"
export NVCCFLAGS = "--compiler-options -std=c++03 --compiler-options -D__GNUC__=7"
ifeq (32,$(DEB_HOST_ARCH_BITS))
CONFIGURE+=-DEZTRACE_ENABLE_PNETCDF=OFF
endif
#ifneq (,$(filter $(DEB_HOST_ARCH),armel hppa hurd-amd64 hurd-i386 m68k powerpc sh4))
CONFIGURE+=-DEZTRACE_ENABLE_KOKKOS=OFF
#endif
%:
dh $@
# TODO: with starpu >= 1.5, EZTRACE_ENABLE_STARPU_API
override_dh_auto_configure:
$(CONFIGURE_ENV) dh_auto_configure -Bbuild-mpich -- $(CONFIGURE) \
-DEZTRACE_ENABLE_CUDA=ON \
-DEZTRACE_ENABLE_MPI=OFF \
-DEZTRACE_ENABLE_STARPU=OFF \
-DEZTRACE_ENABLE_OPENMP=OFF \
-DEZTRACE_ENABLE_POSIXIO=OFF \
-DEZTRACE_ENABLE_PTHREAD=OFF \
-DEZTRACE_ENABLE_MEMORY=OFF \
-DEZTRACE_ENABLE_OMPT=OFF \
-DEZTRACE_ENABLE_KOKKOS=OFF \
-DEZTRACE_ENABLE_PNETCDF=OFF \
-DEZTRACE_ENABLE_NETCDF=OFF \
-DEZTRACE_ENABLE_IOTRACER=OFF \
-DEZTRACE_ENABLE_PYTHON=OFF \
$(CONFIGURE)
override_dh_auto_build:
dh_auto_build -Bbuild-mpich -- -C src/modules/cuda
override_dh_auto_clean:
dh_auto_clean -Bbuild-mpich -- -C src/modules/cuda
override_dh_auto_install:
dh_auto_install --destdir=debian/tmp -Bbuild-mpich -- -C src/modules/cuda
override_dh_auto_test:
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?.*src/modules/omp/bin/eztrace_cc\ .*'
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?\[eztrace_cc\].*'
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?cc\ -o\ test_task.*'
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?cc\ -o\ starpu_.*'
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?cc\ -o\ .*\ -pthread'
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?cc.*\ memory.c.*\ -o\ memory'
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?cc\ -o\ foo\ foo.c.*'
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?g\+\+\ -o\ vector\ vector.cxx'
@echo 'blhc: ignore-line-regexp: ([0-9]*:\ )?.*/cc\ .*\ -c\ .*/test/.*.c'
-verbose=1 dh_auto_test --no-parallel -Bbuild-mpich -- -C src/modules/cuda -k ARGS\+=--extra-verbose
override_dh_dwz:
:
|