Skip to content

Commit

Permalink
madness: update to 2023.11.02
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored and herbygillot committed Nov 19, 2023
1 parent f949e8a commit 75479b9
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions science/madness/Portfile
Expand Up @@ -9,8 +9,8 @@ PortGroup legacysupport 1.1

boost.version 1.81

github.setup m-a-d-n-e-s-s madness 4f7d30b0a738621037b96bb5b820029835753667
version 2023.10.26
github.setup m-a-d-n-e-s-s madness 69ace5826625506fc04f5021d806942b21959d36
version 2023.11.02
revision 0
categories science math
license GPL-2
Expand All @@ -20,9 +20,9 @@ long_description MADNESS provides a high-level environment for the solution \
of integral and differential equations in many dimensions \
using adaptive, fast methods with guaranteed precision \
based on multi-resolution analysis and novel separated representations.
checksums rmd160 da4b3d7b08d4e7f6ca8206a435edc91cdb145ecb \
sha256 c1d076c62bb20cc9ada2a795cc59b906386cb3d764f42fa9d30f5e1608774620 \
size 36734117
checksums rmd160 d7d7933f42608c4af5bafb9f08a6c3a0de9b8506 \
sha256 db8caaad87a5de0b93e150770c9e9f5708d1625feefb0969841e853d483d6749 \
size 36734000
github.tarball_from archive

set py_ver 3.11
Expand All @@ -31,12 +31,21 @@ depends_build-append \
port:python${py_ver_nodot}
configure.python ${prefix}/bin/python${py_ver}

# For now, using OpenBLAS instead of PG choice, due to this:
# https://github.com/m-a-d-n-e-s-s/madness/issues/458
depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
require_active_variants \
# On new systems finding OpenBLAS is broken with this port for some reason recently,
# so let them use Accelerate. On non-Darwin OSs there is no Accelerate: OpenBLAS is the only option.
if {(${os.platform} eq "darwin" && ${os.major} < 20) || ${os.platform} ne "darwin"} {
# For now, using OpenBLAS instead of PG choice, due to this:
# https://github.com/m-a-d-n-e-s-s/madness/issues/458
depends_lib-append \
path:lib/libopenblas.dylib:OpenBLAS
require_active_variants \
path:lib/libopenblas.dylib:OpenBLAS lapack

# We need LAPACK_LIBRARIES to be set: https://trac.macports.org/ticket/68721
configure.pre_args-append \
-DLAPACK_LIBRARIES=OpenBLAS
}

depends_lib-append port:gperftools

patch.pre_args -p1
Expand All @@ -62,9 +71,6 @@ compiler.cxx_standard 2017
compiler.thread_local_storage yes
compilers.setup require_fortran

configure.pre_args-append \
-DBLA_VENDOR=OpenBLAS

# oneTBB task backend not yet fixed: https://github.com/m-a-d-n-e-s-s/madness/issues/366
# It is unclear whether MPI works, therefore disabling for now.
# Please do not enable without testing, and do not enable by default on PPC.
Expand All @@ -86,7 +92,8 @@ configure.args-append \
-DENABLE_SPINLOCKS=ON \
-DENABLE_TCMALLOC_MINIMAL=OFF \
-DFORTRAN_INTEGER_SIZE=4 \
-DMADNESS_TASK_BACKEND="Pthreads"
-DMADNESS_TASK_BACKEND="Pthreads" \
-DPython3_EXECUTABLE=${configure.python}

legacysupport.newest_darwin_requires_legacy 16
legacysupport.use_mp_libcxx yes
Expand Down

0 comments on commit 75479b9

Please sign in to comment.