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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
include /usr/share/dpkg/architecture.mk
LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
export HIPCXX=clang++-19
#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
#include /usr/share/mpi-default-dev/debian_defaults
#export MPICC=mpicc
#endif
ARCH_HIP:= amd64 arm64 ppc64el
ROCM:= $(if $(filter $(DEB_TARGET_ARCH), $(ARCH_HIP)),--with-rocm=/usr,)
HIP:= $(if $(filter $(DEB_TARGET_ARCH), $(ARCH_HIP)),--with-hip=/usr,)
#MPI:= $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),--with-mpi=/usr,)
%:
dh $@
# No ibverbs support available on kFreeBSD, Hurd
NO_VERBS_ARCH:= hurd-amd64 s390x
NO_JAVA_ARCH:=
NO_NUMA_ARCH:=
NO_IMAD_ARCH:= loong64
VERBS:= $(if $(filter $(DEB_TARGET_ARCH), $(NO_VERBS_ARCH)), , --with-verbs )
IMAD:= $(if $(filter $(DEB_TARGET_ARCH), $(NO_IMAD_ARCH)),no,yes )
NUMA:= $(if $(filter $(DEB_TARGET_ARCH), $(NO_NUMA_ARCH)), --disable-numa , )
ifeq ($(filter stage1,$(DEB_BUILD_PROFILES)),)
JAVA := $(if $(filter $(DEB_TARGET_ARCH), $(NO_JAVA_ARCH)), \
,--with-jdk-dir=/usr/lib/jvm/default-java --with-java=/usr/lib/jvm/default-java )
endif
override_dh_auto_configure:
CPPFLAGS="-I/usr/include/hsa -I/usr/include/hip" dh_auto_configure -- \
--enable-mt \
$(MPI) \
$(VERBS) \
$(NUMA) \
$(ROCM) \
$(HIP) \
--with-go=no \
--with-mad=$(IMAD) \
--enable-backtrace-detail \
--enable-logging \
--enable-devel-headers \
--enable-examples \
--enable-cma \
--enable-lcov \
--enable-profiling \
--enable-rc \
--enable-dc \
--enable-ud \
--with-mlx5-dv \
--enable-dm
execute_after_dh_auto_clean:
find . -type l -delete
rm -f config.log
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
execute_after_override_dh_auto_install:
chrpath -d debian/tmp/usr/lib/*/lib*.so.0*
override_dh_dwz:
@echo "pass; dwz currently breaks"
|