-
Notifications
You must be signed in to change notification settings - Fork 698
[RuNNer] Add new package #13359
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
cometscome
wants to merge
20
commits into
JuliaPackaging:master
Choose a base branch
from
cometscome:add-runner
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.
+116
−0
Open
[RuNNer] Add new package #13359
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ef3f4f4
dependencies are added
cometscome 55f3298
bundled is added
cometscome 142ed1c
hash is revised
cometscome 15208b3
revised
cometscome 973376a
revised
cometscome 85f7ce8
revised again
cometscome 3e9664f
build_tarballs.jl is updated
cometscome 92202be
build_tarballs.jl is updated
cometscome dbca58b
build_tarballs.jl is updated
cometscome a5fe2bb
Update cmakegnu.patch
cometscome 86b8118
Update build_tarballs.jl: for avoiding errors Release tag is removed
cometscome f267cdc
Update build_tarballs.jl to find correct case parallel build is removed
cometscome 27f3a90
Update build_tarballs.jl to correct it something is revised
cometscome 1360683
Add , preferred_gcc_version = v"13.2.0" again to avoid error related …
cometscome 540703f
Update build_tarballs.jl try to use older version. gcc8
cometscome b3c0db1
Update B/BPNET/build_tarballs.jl
cometscome 1647fe7
Update build_tarballs.jl
cometscome c2be0b0
Update build_tarballs.jl
cometscome 1cfffc4
Merge remote-tracking branch 'upstream/master'
cometscome 38f300f
RuNNer: add build recipe
cometscome 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,116 @@ | ||
| using BinaryBuilder | ||
| using Pkg | ||
|
|
||
| name = "RuNNer" | ||
| version = v"2.0.0" | ||
|
|
||
| sources = [ | ||
| GitSource("https://gitlab.com/runner-suite/runner2.git", | ||
| "b23bfb7b514071cb0d18c3854f0ed68be678a057"), | ||
| ] | ||
|
|
||
| script = raw""" | ||
| cd ${WORKSPACE}/srcdir/runner2 | ||
|
|
||
| sed -i 's/\[ -z \$FCTYPE\]/[ -z "$FCTYPE" ]/' configure | ||
| sed -i 's/\$FC -l\$1/$FC $LDFLAGS -l$1/g' configure | ||
|
|
||
| export CPPFLAGS="-I${includedir}" | ||
| export LDFLAGS="-L${libdir}" | ||
| export LIBRARY_PATH="${libdir}:${LIBRARY_PATH}" | ||
| export LD_LIBRARY_PATH="${libdir}:${LD_LIBRARY_PATH}" | ||
|
|
||
| if [[ "${target}" == *mingw* ]]; then | ||
| python - <<'PY' | ||
| p = "src/utils/sys.f90" | ||
|
|
||
| with open(p, "r") as f: | ||
| s = f.read() | ||
|
|
||
| s = s.replace(' stat = gethostname(cstr_hostname, lenstr)\n', | ||
| ' stat = 0\n') | ||
| s = s.replace(' hname = c2fstring(cstr_hostname)\n', | ||
| ' hname = "windows"\n') | ||
|
|
||
| with open(p, "w") as f: | ||
| f.write(s) | ||
| PY | ||
| fi | ||
|
|
||
| ./configure \ | ||
| FC=${FC} \ | ||
| FCTYPE=GNU \ | ||
| MKL=OFF \ | ||
| MPI=OFF \ | ||
| ACCELERATE=OFF \ | ||
| STATIC=OFF | ||
|
|
||
| if [[ "${target}" == *apple* ]]; then | ||
| sed -i 's/$(call RUN, AR) -- \$@ \$^/$(call RUN, AR) $(ARFLAGS) $@ $^/g' GNUmakefile | ||
| make ARCH= AR=ar ARFLAGS=rv RANLIB=ranlib -j${nproc} | ||
| make ARCH= AR=ar ARFLAGS=rv RANLIB=ranlib libRuNNer.so | ||
| else | ||
| make ARCH= -j${nproc} | ||
| make ARCH= libRuNNer.so | ||
| fi | ||
|
|
||
| mkdir -p ${bindir} ${libdir} | ||
| cp RuNNer.x ${bindir}/ | ||
| if [[ "${target}" == *mingw* ]]; then | ||
| # executable | ||
| if [ -f RuNNer.x.exe ]; then | ||
| cp RuNNer.x.exe ${bindir}/RuNNer.x.exe | ||
| elif [ -f RuNNer.exe ]; then | ||
| cp RuNNer.exe ${bindir}/RuNNer.x.exe | ||
| elif [ -f RuNNer.x ]; then | ||
| cp RuNNer.x ${bindir}/RuNNer.x.exe | ||
| fi | ||
|
|
||
| # shared library | ||
| if [ -f libRuNNer.dll ]; then | ||
| cp libRuNNer.dll ${bindir}/libRuNNer.dll | ||
| elif [ -f libRuNNer.so ]; then | ||
| cp libRuNNer.so ${bindir}/libRuNNer.dll | ||
| fi | ||
| elif [[ "${target}" == *apple* ]]; then | ||
| cp RuNNer.x ${bindir}/ | ||
| cp libRuNNer.so ${libdir}/libRuNNer.dylib | ||
| cp libRuNNer.so ${libdir}/ | ||
| else | ||
| cp RuNNer.x ${bindir}/ | ||
| cp libRuNNer.so ${libdir}/ | ||
| fi | ||
|
|
||
| """ | ||
|
|
||
| platforms = [ | ||
| Platform("x86_64", "linux"; libc="glibc", libgfortran_version=v"5.0.0"), | ||
| Platform("x86_64", "linux"; libc="musl", libgfortran_version=v"5.0.0"), | ||
| Platform("x86_64", "macos"; libgfortran_version=v"5.0.0"), | ||
| Platform("aarch64", "macos"; libgfortran_version=v"5.0.0"), | ||
| Platform("x86_64", "windows"; libgfortran_version=v"5.0.0"), | ||
| #Platform("aarch64", "linux"; libc="glibc"), no quadmath support in glibc for aarch64 | ||
| #Platform("aarch64", "linux"; libc="musl"), no quadmath support in musl | ||
| ] | ||
|
|
||
| #platforms = expand_gfortran_versions(platforms) | ||
|
|
||
| products = [ | ||
| LibraryProduct("libRuNNer", :libRuNNer), | ||
| ExecutableProduct("RuNNer.x", :RuNNer_x), | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| Dependency("OpenBLAS32_jll"), | ||
| Dependency(Pkg.PackageSpec(name="CompilerSupportLibraries_jll", | ||
| uuid="e66e0078-7015-5450-92f7-15fbd957f2ae")), | ||
| ] | ||
|
|
||
| @show platforms | ||
| #build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies) | ||
| build_tarballs( | ||
| ARGS, name, version, sources, script, platforms, products, dependencies; | ||
| compilers=[:c, :fortran], | ||
| preferred_gcc_version=v"10", | ||
| julia_compat="1.6", | ||
| ) | ||
|
cometscome marked this conversation as resolved.
|
||
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.