-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
exago: Add v1.2.0 and patches for builds without python or tests. #41350
exago: Add v1.2.0 and patches for builds without python or tests. #41350
Conversation
@ryandanehy can you review this PR? This PR modifies the following package(s), for which you are listed as a maintainer:
|
@spackbot help |
You can interact with me in many ways!
I'll also help to label your pull request and assign reviewers! |
@spackbot fix style |
Let me see if I can fix that for you! |
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
var/spack/repos/builtin/packages/exago/package.py
==> Running isort checks
isort checks were clean
==> Running black checks
reformatted var/spack/repos/builtin/packages/exago/package.py
All done! ✨ 🍰 ✨
1 file reformatted.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> Running mypy checks
Success: no issues found in 606 source files
mypy checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
There are some CI failures. Maybe it is because you added a patch for version
since version |
lol I don't know how we went this long with that release not being in our package... Thanks for the help debugging :) ExaGO v1.2.0 has been added to our package. |
Hmm, the
It looks like my guess for the reason of the failure was incorrect. I'm not sure what the issue is ... |
Its a strange error cc: @eugeneswalker Perhaps you can try adding in + url = "https://github.com/pnnl/ExaGO/archive/refs/tags/v1.0.0.tar.gz" |
Adding this as the URL to the git version I assume you mean? In addition to the tag and commit sha? |
This error comes up with xsdk build as well. https://gitlab.com/xsdk-project/spack-xsdk/-/jobs/5655279511
I try a manual build - and see the same thing
|
Ok - the issue here is diff --git a/var/spack/repos/builtin/packages/exago/package.py b/var/spack/repos/builtin/packages/exago/package.py
index fa54c61b3c..139531197e 100644
--- a/var/spack/repos/builtin/packages/exago/package.py
+++ b/var/spack/repos/builtin/packages/exago/package.py
@@ -182,7 +182,7 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
depends_on("camp {0}".format(rocm_dep), when="+raja {0}".format(rocm_dep))
# CMake patches to support ~python and ~testing
- for version in [
+ for ver in [
"1.6.0",
"1.5.1",
"1.5.0",
@@ -194,7 +194,7 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
"1.1.1",
"1.1.0",
]:
- patch("exago-{0}.patch".format(version), when="@{0}".format(version))
+ patch("exago-{0}.patch".format(ver), when="@{0}".format(ver))
flag_handler = build_system_flags
|
Sorry was building from a bad snapshot.. |
# CMake patches to support ~python and ~testing | ||
for ver in [ | ||
"1.6.0", | ||
"1.5.1", | ||
"1.5.0", | ||
"1.4.1", | ||
"1.4.0", | ||
"1.3.0", | ||
"1.2.0", | ||
"1.1.2", | ||
"1.1.1", | ||
"1.1.0", | ||
]: | ||
patch("exago-{0}.patch".format(ver), when="@{0}".format(ver)) |
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.
Probably good to remove duplicate patches from here.
# CMake patches to support ~python and ~testing | |
for ver in [ | |
"1.6.0", | |
"1.5.1", | |
"1.5.0", | |
"1.4.1", | |
"1.4.0", | |
"1.3.0", | |
"1.2.0", | |
"1.1.2", | |
"1.1.1", | |
"1.1.0", | |
]: | |
patch("exago-{0}.patch".format(ver), when="@{0}".format(ver)) | |
# CMake patches to support ~python and ~testing | |
patch("exago-1.6.0.patch", when="@1.6.0") | |
patch("exago-1.5.0.patch", when="@1.5.0:1.5.1") | |
patch("exago-1.3.0.patch", when="@1.3.0:1.4.1") | |
patch("exago-1.1.0.patch", when="@1.1.0:1.2.0") |
using exago-1.5.0.patch
with [email protected]
works for me.
==> Installing exago-1.5.1-tifh5k45ktj56fnib52gf5udrc2qqzh6 [39/39]
==> No binary for exago-1.5.1-tifh5k45ktj56fnib52gf5udrc2qqzh6 found: installing from source
==> Applied patch /home/balay/spack/var/spack/repos/builtin/packages/exago/exago-1.5.0.patch
==> exago: Executing phase: 'cmake'
==> exago: Executing phase: 'build'
==> exago: Executing phase: 'install'
==> exago: Successfully installed exago-1.5.1-tifh5k45ktj56fnib52gf5udrc2qqzh6
Stage: 1m 8.27s. Cmake: 2.87s. Build: 0.86s. Install: 0.26s. Post-install: 0.05s. Total: 1m 12.54s
[+] /home/balay/spack/opt/spack/linux-fedora39-skylake/gcc-13.2.1/exago-1.5.1-tifh5k45ktj56fnib52gf5udrc2qqzh6
using exago-1.3.0.patch
with [email protected]
also works - but has subsequent build errors.
==> Installing exago-1.4.1-7vpnhzzxsrth7ahzm4pwdvgvpgybcdtf [34/34]
==> No binary for exago-1.4.1-7vpnhzzxsrth7ahzm4pwdvgvpgybcdtf found: installing from source
==> Applied patch /home/balay/spack/var/spack/repos/builtin/packages/exago/exago-1.3.0.patch
==> exago: Executing phase: 'cmake'
==> exago: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
'make' '-j12'
6 errors found in build log:
434 [ 78%] Linking CXX executable tcopflow
435 cd /home/balay/spack/spack-stage/spack-stage-exago-1.4.1-7vpnhzzxsrth7ahzm4pwdvgvpgybcdtf/spack-build-7vpnhzz/applications && /usr/bin/cmake -E cmake_link_script CMakeFiles/app_tcopflow.dir/link.txt --verbose=1
436 /software/mpich-4.1.1/bin/mpic++ -O3 -DNDEBUG CMakeFiles/app_tcopflow.dir/tcopflow_main.cpp.o -o tcopflow -Wl,-rpath,/home/balay/spack/opt/spack/linux-fedora39-skylake/gcc-13.2.1/petsc-3.16.6-diy2horf5ykuk5kbohcixnvkkxegfehn
/lib:/home/balay/spack/opt/spack/linux-fedora39-skylake/gcc-13.2.1/netlib-lapack-3.11.0-mbofv6x6fzhx6yragjt3crpcjhrwocp7/lib64:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::: ../src/tcopflow/libexago_tcopflow.a ../src/opflow/libexago_opflow.a /usr/lib/gcc/x86_64-redhat-linux/13/libgomp.so /usr/lib64/libpthread.a /home/balay/spack/opt/spack/linux-fedora39-skylake/gcc-13.2.1/hiop-1.0.1-
i7dp5ulk4wfb5iqhmgjab7wowocdhszr/lib/libhiop.a ../src/pflow/libexago_pflow.a ../src/ps/libexago_ps.a ../src/utils/libexago_utils.a ../tpl/spdlog/libspdlog.a /home/balay/spack/opt/spack/linux-fedora39-skylake/gcc-13.2.1/petsc-
3.16.6-diy2horf5ykuk5kbohcixnvkkxegfehn/lib/libpetsc.so /home/balay/spack/opt/spack/linux-fedora39-skylake/gcc-13.2.1/netlib-lapack-3.11.0-mbofv6x6fzhx6yragjt3crpcjhrwocp7/lib64/liblapack.so /home/balay/spack/opt/spack/linux-
fedora39-skylake/gcc-13.2.1/netlib-lapack-3.11.0-mbofv6x6fzhx6yragjt3crpcjhrwocp7/lib64/libblas.so
437 make[2]: Leaving directory '/home/balay/spack/spack-stage/spack-stage-exago-1.4.1-7vpnhzzxsrth7ahzm4pwdvgvpgybcdtf/spack-build-7vpnhzz'
438 [ 78%] Built target app_tcopflow
439 In file included from /home/balay/spack/spack-stage/spack-stage-exago-1.4.1-7vpnhzzxsrth7ahzm4pwdvgvpgybcdtf/spack-src/src/scopflow/solver/hiop/scopflow_hiop.cpp:5:
>> 440 /home/balay/spack/spack-stage/spack-stage-exago-1.4.1-7vpnhzzxsrth7ahzm4pwdvgvpgybcdtf/spack-src/src/scopflow/solver/hiop/scopflow_hiop.h:34:10: error: conflicting return type specified for 'virtual size_t SCOPFLOWHIOPInterfa
ce::get_num_rterms() const'
441 34 | size_t get_num_rterms() const;
442 | ^~~~~~~~~~~~~~
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.
so I re-tried a build of all versions [with the current PR changes]
balay@petsc-gpu-02:/scratch/balay/spack.z$ ./bin/spack -j64 install [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] |& tee build.log
The following version built fine
balay@petsc-gpu-02:/scratch/balay/spack.z$ ./bin/spack find exago
-- linux-ubuntu22.04-zen4 / [email protected] --------------------------
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
==> 6 installed packages
And others failed.
build.log.txt
BTW: With my above suggested change [to 4 patch files] - the same versions are build (and with similar build errors for the other versions)
balay@petsc-gpu-02:/scratch/balay/spack.zz$ ./bin/spack find exago
-- linux-ubuntu22.04-zen4 / [email protected] --------------------------
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
==> 6 installed packages
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.
I pushed the above change to remove duplicate patch-files.
Perhaps exago-1.6.0.patch
is a commit in the exago repo? If so - it can be changed to a URL from patch-file.
I'm not sure if [email protected] [email protected] [email protected] [email protected]
failures should hold up this PR..
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.
will go ahead and merge this in - so that 1.5.0 fix is in.
And I guess [email protected] [email protected] [email protected] [email protected]
fixes - if any can be in a subsequent PR.
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.
@balay did you create an issue for those exago build failures / can you make one in ExaGO?
I don't quite understand why you are seeing that error, but that would suggest we have the wrong HiOp versions listed as dependencies for those ExaGO versions, or we need to have a patch in ExaGO / HiOp to address build failures in those versions.
Either way thank you for merging, and apologies for the slow reply as I was taking some time off work.
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.
@cameronrutherford, you can grab the logs from here [and steps to reproduce] - and file in your issue tracker [as needed]
I don't need fixes for those versions though..
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.
…ack#41350) Co-authored-by: Satish Balay <[email protected]>
…ack#41350) Co-authored-by: Satish Balay <[email protected]>
Closes xsdk-project/xsdk-issues#224 with back ports for previous exago versions that had python support.
Versions earlier than 1.0.0 do not have python or issue with testing variant.
cc @balay and @v-dobrev for xSDK