-
Notifications
You must be signed in to change notification settings - Fork 732
[SLATE] New builder #4093
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
Merged
+51
−0
Merged
[SLATE] New builder #4093
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
a72eca5
builder
438100f
restrict to MPITrampoline
8fcb52f
rm Darwin
44d64ad
Correct version #
d4527a1
add Products
9e6fdf1
typo with shared libs
6a4cd9f
Add some notes, up gcc version, rm C_api
b64f182
Add back the gfortran3 filter
9ed8266
Update to 2022 release
rayegun a07402a
rm experimental_platforms
rayegun 89d07f9
Merge branch 'master' into SLATE_build
rayegun fcf07a3
exclude more plats
rayegun 366e56f
Merge branch 'SLATE_build' of https://github.com/Wimmerer/Yggdrasil i…
rayegun 1817137
rm libgfortran3
rayegun 5f051b5
re-remove libgfort3 for test
rayegun a3186eb
filter
rayegun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,51 @@ | ||
| using BinaryBuilder | ||
|
|
||
| name = "SLATE" | ||
| version = v"2022.05.00" | ||
|
|
||
| # Collection of sources required to build PETSc. Avoid using the git repository, it will | ||
| # require building SOWING which fails in all non-linux platforms. | ||
| sources = [ | ||
| GitSource("https://bitbucket.org/icl/slate.git", "5fb57877effa06d2ef090402a39341ebeb44f180") | ||
| ] | ||
|
|
||
| # Bash recipe for building across all platforms | ||
|
|
||
| # Needs to add -Dcapi eventually once it's added to the cmake build system. Note yet available under CMAKAE toolchain. | ||
| script = raw""" | ||
| cd slate | ||
| git submodule update --init | ||
| mkdir build && cd build | ||
| cmake \ | ||
| -DCMAKE_INSTALL_PREFIX=${prefix} \ | ||
| -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \ | ||
| -DCMAKE_BUILD_TYPE="Release" \ | ||
| -Dblas=openblas \ | ||
| -Dbuild_tests=no \ | ||
| -DMPI_RUN_RESULT_CXX_libver_mpi_normal="0" \ | ||
| -DMPI_RUN_RESULT_CXX_libver_mpi_normal__TRYRUN_OUTPUT="" \ | ||
| -Drun_result="0" \ | ||
| -Drun_result__TRYRUN_OUTPUT="ok" \ | ||
| -Dc_api=yes \ | ||
| .. | ||
| make -j${nproc} | ||
| make install | ||
| """ | ||
|
|
||
| # We attempt to build for all defined platforms | ||
| platforms = expand_gfortran_versions(expand_cxxstring_abis(supported_platforms(; exclude=!Sys.islinux))) | ||
| platforms = filter(p -> libgfortran_version(p) ≠ v"3", platforms) | ||
| products = [ | ||
| LibraryProduct("libslate", :libslate), | ||
| LibraryProduct("libslate_lapack_api", :libslate_lapack_api) | ||
| # LibraryProduct("libslate_scalapack_api, :libslate_scalapack_api) ** Not yet available under CMAKE toolchain. | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| Dependency("CompilerSupportLibraries_jll"), | ||
| Dependency("OpenBLAS32_jll"), | ||
| Dependency("MPICH_jll") | ||
| ] | ||
|
|
||
| # Build the tarballs. | ||
| build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", preferred_gcc_version=v"7") | ||
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.
Uh oh!
There was an error while loading. Please reload this page.