-
Notifications
You must be signed in to change notification settings - Fork 644
[AOCL] Add a recipe for v5.1.0 #12414
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
Open
amontoison
wants to merge
6
commits into
JuliaPackaging:master
Choose a base branch
from
amontoison:aocl-5.1.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
73d41a5
[AOCL] Add a recipe for v5.1.0
amontoison 2ee01d7
Update A/AOCL/build_tarballs.jl
ViralBShah a225b0c
Update A/AOCL/build_tarballs.jl
ViralBShah 1e91a87
Update A/AOCL/build_tarballs.jl
ViralBShah 63cc639
Update A/AOCL/build_tarballs.jl
ViralBShah 44d4003
Update A/AOCL/build_tarballs.jl
ViralBShah 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,72 @@ | ||
| using BinaryBuilder, Pkg | ||
|
|
||
| name = "AOCL" | ||
| version = v"5.1.0" | ||
| sources = [ | ||
| ArchiveSource("https://download.amd.com/developer/eula/blas/blas-$(version.major)-$(version.minor)/aocl-blis-linux-gcc-$(version).tar.gz", | ||
| "43dcc5efe9a73d7065e4a5faf9071f92624d71a033fa56f2d74e775df3ab100a"), | ||
| ArchiveSource("https://download.amd.com/developer/eula/libflame/libflame-5-1/aocl-libflame-linux-gcc-5.1.0.tar.gz", | ||
| "95da66503c2b2160552824109d51a6fc24f1d176a7bdcec3e25f866ce080c777"), | ||
| ArchiveSource("https://download.amd.com/developer/eula/utils/utils-5-1/aocl-utils-linux-gcc-5.1.0.tar.gz", | ||
| "c2b7316d364deb933e440f5d37cd7abeeb5cce9faf97efd1d0bc05c264ac93a8"), | ||
| GitSource("https://github.com/amd/AOCL_jll.jl.git", | ||
| "d3bffce6129bd77cde3f68adb9b03a44b82cfba2"), | ||
| ] | ||
|
|
||
| script = raw""" | ||
| cd ${WORKSPACE}/srcdir/ | ||
|
|
||
| # install the LP64 binaries (renamed to avoid soname collision) | ||
| # ------------------------------------------------------------------------------ | ||
| install -Dvm 755 amd-blis/lib/LP64/libblis-mt.so.5.1.0 ${libdir}/libblis-mt32.so | ||
| install -Dvm 755 amd-libflame/lib/LP64/libflame.so ${libdir}/libflame32.so | ||
|
|
||
| # change the LP64 binaries' soname | ||
| # ------------------------------------------------------------------------------ | ||
| patchelf --set-soname libblis-mt32.so ${libdir}/libblis-mt32.so | ||
| patchelf --set-soname libflame32.so ${libdir}/libflame32.so | ||
|
|
||
| # ensure that libflame32 actually depends on the renamed library | ||
| # ------------------------------------------------------------------------------ | ||
| patchelf --replace-needed libblis-mt.so.5 libblis-mt32.so ${libdir}/libflame32.so | ||
|
|
||
| # install the ILP64 binaries | ||
| # ------------------------------------------------------------------------------ | ||
| install -Dvm 755 amd-blis/lib/ILP64/libblis-mt.so.5.1.0 ${libdir}/libblis-mt.so | ||
| install -Dvm 755 amd-libflame/lib/ILP64/libflame.so ${libdir}/libflame.so | ||
|
|
||
| # change the soname for blis for consistency (and update libflame) | ||
| patchelf --set-soname libblis-mt.so ${libdir}/libblis-mt.so | ||
| patchelf --replace-needed libblis-mt.so.5 libblis-mt.so ${libdir}/libflame.so | ||
|
|
||
| # install the AOCL-UTILS library | ||
| # ------------------------------------------------------------------------------ | ||
| install -Dvm 755 amd-utils/lib/libaoclutils.so ${libdir}/libaoclutils.so | ||
|
|
||
| cd ${WORKSPACE}/srcdir/AOCL_jll.jl/recipe/bundled/licenses | ||
| install_license 'LICENSE File for AOCL-BLIS v.5.1.pdf' | ||
| install_license 'Third_Party_Notices_AOCL-BLIS v.5.1.pdf' | ||
| install_license 'LICENSE File for AOCL-LIBFLAME v.5.1.pdf' | ||
| install_license 'Third_Party_Notices_AOCL-LIBFLAME v.5.1.pdf' | ||
| install_license 'LICENSE File for AOCL-Utils v.5.1.pdf' | ||
| install_license 'Third_Party_Notices_AOCL-Utils v.5.1.pdf' | ||
| """ | ||
|
|
||
| platforms = [ Platform("x86_64", "linux"; libc="glibc", cxxstring_abi=:cxx11) ] | ||
|
|
||
| products = [ | ||
| # LP64 | ||
| LibraryProduct("libblis-mt32", :aocl_blas_lp64), | ||
| LibraryProduct("libflame32", :aocl_lapack_lp64), | ||
| # ILP64 | ||
| LibraryProduct("libblis-mt", :aocl_blas_ilp64), | ||
| LibraryProduct("libflame", :aocl_lapack_ilp64), | ||
| # COMMON | ||
| LibraryProduct("libaoclutils", :aocl_utils), | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae")) | ||
| ] | ||
|
|
||
| build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies) | ||
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.
This is fine for now, but for future versions of AOCL we will need a better place to download the license files from. @amd-agodbole is there someplace on the website where we could download each file? We could then use a
FileSourceto get the licenses.Or actually, are these PDF files just a copy of the LICENSE and NOTICES files in the various repos (e.g., https://github.com/amd/blis/blob/master/LICENSE and https://github.com/amd/blis/blob/master/NOTICES)? If so, we could use those.