New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SuperLU_DIST] New Build #4672
Merged
Merged
[SuperLU_DIST] New Build #4672
Changes from 6 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
57bcd54
basic init
rayegun 042c133
kill some warnings, correct LibraryProduct
rayegun 34356f1
fix name
rayegun ce0ed12
Update S/SuperLU_DIST/build_tarballs.jl
rayegun 83736bc
Reduce GCC back to 6
rayegun 4aecfd8
Filter libgfortran3
rayegun 1a6452f
Update S/SuperLU_DIST/build_tarballs.jl
vchuravy 42d5764
disable parmetis on windows, fails to find msmpi
rayegun bf4989f
different paths
rayegun a3855c3
[SuperLU_DIST] Convince CMake to link to msmpi on Windows
giordano d6271c9
rm Windows, comment about removal
rayegun 1c4a4b2
[SuperLU_DIST] Add patch for Windows and use LLVM OpenMP for BSD systems
giordano f6503fc
rm expand_gfortran
rayegun 2627494
attempt to build both 64 and 32 bit binaries, use latest master
rayegun eeeb63e
rm patch that was merged upstream
rayegun 251043c
Update to v8.0.0
866f334
Update S/SuperLU_DIST/build_tarballs.jl
giordano File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Note that this script can accept some limited command-line arguments, run | ||
# `julia build_tarballs.jl --help` to see a usage message. | ||
using BinaryBuilder, Pkg | ||
|
||
name = "SuperLU_DIST" | ||
version = v"7.2.0" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
# We are using the most recent master as of this build rather than v7.2.0 release. | ||
# The release is strangely missing .h files that are necessary for build. | ||
# They exist on master. | ||
GitSource("https://github.com/xiaoyeli/superlu_dist.git", "b430c074a19bdfd897d5e2a285a85bc819db12e5") | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/superlu_dist* | ||
mkdir build && cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=${prefix} \ | ||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DTPL_ENABLE_INTERNAL_BLASLIB=OFF \ | ||
-Denable_tests=OFF \ | ||
-Denable_doc=OFF \ | ||
-Denable_single=ON \ | ||
-Denable_double=ON \ | ||
-Denable_complex16=ON \ | ||
-DTPL_BLAS_LIBRARIES="${libdir}/libopenblas.${dlext}" \ | ||
-DTPL_PARMETIS_INCLUDE_DIRS="${includedir}" \ | ||
-DTPL_PARMETIS_LIBRARIES="${libdir}/libparmetis.${dlext};${libdir}/libmetis.${dlext}" \ | ||
-DCMAKE_C_FLAGS="-std=c99" \ | ||
-DXSDK_INDEX_SIZE=32 \ | ||
-DXSDK_ENABLE_Fortran=OFF \ | ||
.. | ||
make -j${nproc} | ||
make install | ||
if [[ "${target}" == *-mingw* ]]; then | ||
# Manually install the library | ||
cp "SRC/libsuperlu.${dlext}" "${libdir}/libsuperlu.${dlext}" | ||
fi | ||
""" | ||
|
||
# These are the platforms we will build for by default, unless further | ||
# platforms are passed in on the command line | ||
platforms = expand_gfortran_versions(supported_platforms()) | ||
platforms = filter(p -> libgfortran_version(p) ≠ v"3", platforms) | ||
# The products that we will ensure are always built | ||
products = [ | ||
LibraryProduct("libsuperlu_dist", :libsuperlu_dist) | ||
] | ||
|
||
# Dependencies that must be installed before this package can be built | ||
dependencies = [ | ||
Dependency(PackageSpec(name="OpenBLAS32_jll", uuid="656ef2d0-ae68-5445-9ca0-591084a874a2")), | ||
Dependency(PackageSpec(name="PARMETIS_jll", uuid="b247a4be-ddc1-5759-8008-7e02fe3dbdaa")), | ||
Dependency("MPICH_jll"), | ||
vchuravy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Dependency("METIS_jll"), | ||
Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae")) | ||
] | ||
|
||
# Build the tarballs, and possibly a `build.jl` as well. | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", preferred_gcc_version = v"6") |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why expanding the libgfortran version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Wimmerer bump