File: rules

package info (click to toggle)
spfft 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,680 kB
  • sloc: cpp: 11,562; f90: 665; ansic: 437; python: 41; makefile: 20
file content (18 lines) | stat: -rwxr-xr-x 530 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Enabling ROCm support for AMD GPUs
export HIPCXX=clang++-17
ARCH_HIP_CPU := amd64 arm64 ppc64el
ARCH_HIP_GPU := gfx803;gfx900;gfx906;gfx908;gfx90a;gfx1010;gfx1030;gfx1100;gfx1101;gfx1102
HIP := $(if $(filter $(DEB_TARGET_ARCH), $(ARCH_HIP_CPU)), -DSPFFT_GPU_BACKEND=ROCM "-DCMAKE_HIP_ARCHITECTURES=$(ARCH_HIP_GPU)",)

CMAKE_FLAGS = $(HIP)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS)

execute_after_dh_auto_install:
	find debian/tmp -name libspfft.so | xargs chrpath --delete