Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/openmpi/PKGBUILD
blob: a932d3f094c7d943b97bdd3918309f26738897c6 (plain)
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
# no CUDA
makedepends=(${makedepends[@]//cuda/})
makedepends=(${makedepends[@]//nvidia-utils/})
eval "$(
 declare -f build | \
    sed '
      /local configure_options.*/ a \
        configure_options=(${configure_options[@]/--with-cuda=.*/--without-cuda})
    '
)"

# PRRTE warns us about not building on 32-bit, so remove it
makedepends=(${makedepends[@]//prtte/})
eval "$(
 declare -f build | \
    sed '
      /local configure_options.*/ a \
        configure_options=(${configure_options[@]/--with-prrte=external/--without-prrte})
    '
)"
eval "$(
 declare -f package_openmpi | \
    sed '
      /depends.*/ a \
        depends=(${depends[@]//prrte/})
    '
)"

# AMD stuff requires a special LLVM and clang, doesn't build currently
# (whoever wants to fix that is welcome)
makedepends=(${makedepends[@]//hip-runtime-amd/})

# openucc doesn't build
makedepends=(${makedepends[@]//openucc/})

# openucx requires cuda and rocm-language-runtime
makedepends=(${makedepends[@]//openucx/})
eval "$(
 declare -f package_openmpi | \
    sed '
      /depends.*/ a \
        depends=(${depends[@]//openucx/})
    '
)"