Skip to content

Commit

Permalink
Recompile Ipopt with OpenBLAS32 for windows platforms (#5622)
Browse files Browse the repository at this point in the history
* Recompile Ipopt with OpenBLAS32 for windows platforms

* Update C/Coin-OR/Ipopt/build_tarballs.jl

Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
  • Loading branch information
amontoison and giordano authored Oct 4, 2022
1 parent 7672b57 commit ad13ef8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions C/Coin-OR/Ipopt/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ if [[ ${target} == *mingw* ]]; then
export LDFLAGS="-L${libdir}"
fi
if [[ "${target}" == *mingw* ]]; then
BLAS_LAPACK="-L${libdir} -lopenblas"
else
BLAS_LAPACK="-L${libdir} -lblastrampoline"
fi
./configure \
--prefix=${prefix} \
--build=${MACHTYPE} \
Expand All @@ -33,9 +39,9 @@ fi
--with-pic \
--disable-dependency-tracking \
lt_cv_deplibs_check_method=pass_all \
--with-lapack-lflags=-lblastrampoline \
--with-lapack-lflags="${BLAS_LAPACK}" \
--with-mumps-cflags="-I${includedir}" \
--with-mumps-lflags="-ldmumps -lzmumps -lcmumps -lsmumps -lmumps_common -lmpiseq -lpord -lmetis -lblastrampoline -lgfortran -lpthread" \
--with-mumps-lflags="-ldmumps -lzmumps -lcmumps -lsmumps -lmumps_common -lmpiseq -lpord -lmetis {BLAS_LAPACK} -lgfortran -lpthread" \
--with-asl-lflags="${LIBASL}"
# parallel build fails
Expand All @@ -58,7 +64,8 @@ products = [
dependencies = [
Dependency(PackageSpec(name="ASL_jll", uuid="ae81ac8f-d209-56e5-92de-9978fef736f9"), ASL_version),
Dependency(PackageSpec(name="MUMPS_seq_jll", uuid="d7ed1dd3-d0ae-5e8e-bfb4-87a502085b8d"), compat="=$(MUMPS_seq_version)"),
Dependency(PackageSpec(name="libblastrampoline_jll", uuid="8e850b90-86db-534c-a0d3-1478176c7d93")),
Dependency(PackageSpec(name="OpenBLAS32_jll", uuid="656ef2d0-ae68-5445-9ca0-591084a874a2"), platforms=filter(Sys.iswindows, platforms)),
Dependency(PackageSpec(name="libblastrampoline_jll", uuid="8e850b90-86db-534c-a0d3-1478176c7d93"), platforms=filter(!Sys.iswindows, platforms)),
Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae"))
]

Expand Down
4 changes: 2 additions & 2 deletions C/Coin-OR/coin-or-common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CoinUtils_version =

Ipopt_upstream_version = v"3.14.4"
Ipopt_gitsha = "d872b3a3d17863c6a2a27475cc9af9e933cb7e92"
Ipopt_verson_offset = v"0.0.2"
Ipopt_verson_offset = v"0.0.3"
Ipopt_version = offset_version(Ipopt_upstream_version, Ipopt_verson_offset)

ALPS_upstream_version = v"1.5.7"
Expand Down Expand Up @@ -89,7 +89,7 @@ SHOT_version = offset_version(v"1.1.0", v"0.0.0")
# Third-party packages needed by COIN-OR libraries.
ASL_version = v"0.1.3"
METIS_version = v"5.1.1"
MUMPS_seq_version = v"500.400.100"
MUMPS_seq_version = v"500.500.101"
OpenBLAS32_version = v"0.3.10"

# These are the platforms we will build for by default, unless further
Expand Down

0 comments on commit ad13ef8

Please sign in to comment.