Skip to content

{bio}[GCC/11.2.0] Raven v1.8.1 w/ Python 3.9.6#15833

Merged
boegel merged 14 commits intoeasybuilders:developfrom
ItIsI-Orient:20220708140501_new_pr_Raven181
Mar 22, 2023
Merged

{bio}[GCC/11.2.0] Raven v1.8.1 w/ Python 3.9.6#15833
boegel merged 14 commits intoeasybuilders:developfrom
ItIsI-Orient:20220708140501_new_pr_Raven181

Conversation

@ItIsI-Orient
Copy link
Copy Markdown
Contributor

(created using eb --new-pr)

@ItIsI-Orient ItIsI-Orient mentioned this pull request Jul 8, 2022
3 tasks
@easybuilders easybuilders deleted a comment from boegelbot Jul 9, 2022
@boegel boegel added the new label Jul 9, 2022
@boegel boegel added this to the 4.x milestone Jul 9, 2022
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ItIsI-Orient The tests aren't happy because you should set download_dep_fail and use_pip via exts_default_options (as opposed to in the extension itself in exts_list), like so:

exts_default_options = {
    'download_dep_fail': True,
    'use_pip': True,
}

(that's just a style thing, functionally there's no difference)

Comment thread easybuild/easyconfigs/r/Raven/Raven-1.8.1-GCC-11.2.0.eb Outdated
@ItIsI-Orient
Copy link
Copy Markdown
Contributor Author

Test report by @ItIsI-Orient
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
node3701.slaking.os - Linux RHEL 8.4, x86_64, Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz, Python 3.6.8
See https://gist.github.com/0e3296e4f9ee74dc5ba6142219dd4442 for a full test report.

@bedroge
Copy link
Copy Markdown
Contributor

bedroge commented Jul 18, 2022

Test report by @bedroge
FAILED
Build succeeded for 0 out of 1 (1 easyconfigs in total)
bob-Latitude-5300 - Linux Ubuntu 22.04, x86_64, Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz, Python 3.10.4
See https://gist.github.com/78b729178009076c6956e810e7133941 for a full test report.

@bedroge
Copy link
Copy Markdown
Contributor

bedroge commented Jul 18, 2022

Test report by @bedroge
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
pg-interactive.hpc.rug.nl - Linux CentOS Linux 7.9.2009, x86_64, Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz, Python 3.6.8
See https://gist.github.com/33f962162202fdcf123c663958711b4a for a full test report.

@bedroge
Copy link
Copy Markdown
Contributor

bedroge commented Jul 18, 2022

The installation of the Python extension fails on my Ubuntu system:

  [25/26] Linking CXX static library lib/libraven.a
  [26/26] Linking CXX shared module lib/ravenpy.cpython-310-x86_64-linux-gnu.so
  error: [Errno 2] No such file or directory: '/data/eb/tmp/eb-aklw6_1o/pip-req-build-6c3ee0ie/build/lib.linux-x86_64-3.9/ravenpy_build/lib/ravenpy.cpython-39-x86_64-linux-gnu.so'

It looks like it's somehow mixing up the Python versions from the OS (3.10) and the module (3.9)...

  -- Found PythonInterp: /usr/bin/python3.10 (found version "3.10.4")
  -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so

@bedroge
Copy link
Copy Markdown
Contributor

bedroge commented Jul 20, 2022

I've debugged this a bit more, and the issue seems to be caused by the way CMake is trying to find Python. This behavior has been changed in CMake 3.15: https://cmake.org/cmake/help/latest/policy/CMP0094.html#policy:CMP0094
With older versions/policies of CMake, it would just look for the newest Python it could find (and since my Ubuntu has Python 3.10, it prefers that one), with newer ones the location is preferred. We do use a newer CMake for this easyconfig, but because Raven's CMakeLists.txt has cmake_minimum_required(VERSION 3.11), it still falls back to the old policy. We can change this by either patching that line in CMakeLists.txt, or by explicitly enabling the new policy in setup.py; I'd prefer the latter. On top of that, we should also make sure that pybind uses CMake's FindPython functionality by setting PYBIND11_FINDPYTHON=ON.

Finally, I see that the installation pulls in some dependencies, see:
https://github.com/lbcb-sci/raven/blob/1.8.1/Raven.deps.cmake
It would be cleaner if we would list these as dependencies in the easyconfig. For most(/all?) of them, easyconfigs already seem to exist, they may only require a version bump.

@ItIsI-Orient
Copy link
Copy Markdown
Contributor Author

Will take a look into that.

Also I am not sure how to enable the new policy in setup.py, could you point me in the right direction about solving this one?

Comment thread easybuild/easyconfigs/r/Raven/Raven-1.8.1-GCC-11.2.0.eb
@boegel
Copy link
Copy Markdown
Member

boegel commented Aug 8, 2022

Will take a look into that.

Also I am not sure how to enable the new policy in setup.py, could you point me in the right direction about solving this one?

@ItIsI-Orient Via -DPython3_FIND_STRATEGY I guess, see https://cmake.org/cmake/help/latest/policy/CMP0094.html ?

@ItIsI-Orient ItIsI-Orient marked this pull request as draft August 9, 2022 08:44
@easybuilders easybuilders deleted a comment from boegelbot Jan 2, 2023
@boegel
Copy link
Copy Markdown
Member

boegel commented Jan 2, 2023

We fixed a very similar problem with the Python being used for VTK in #16741 via -DPython3_EXECUTABLE, which we should also use here (and actually everywhere where CMake is being used and Python is included as a dependency, so in the CMakeMake easyblock, but that's a big hammer...)

@ItIsI-Orient ItIsI-Orient marked this pull request as ready for review January 4, 2023 16:13
@ItIsI-Orient
Copy link
Copy Markdown
Contributor Author

Test report by @ItIsI-Orient
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
node3703.slaking.os - Linux RHEL 8.6, x86_64, Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz, Python 3.6.8
See https://gist.github.com/89f3570fd5c99e45fc384ccf907537b7 for a full test report.

@ItIsI-Orient
Copy link
Copy Markdown
Contributor Author

@bedroge Could you please test, whether the issue you had is resolved?

@bedroge
Copy link
Copy Markdown
Contributor

bedroge commented Jan 5, 2023

Test report by @bedroge
FAILED
Build succeeded for 0 out of 1 (1 easyconfigs in total)
bob-Latitude-5300 - Linux Ubuntu 22.04, x86_64, Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz, Python 3.10.6
See https://gist.github.com/206dd0cc6458400f3d2af95b759d14b0 for a full test report.

@bedroge
Copy link
Copy Markdown
Contributor

bedroge commented Jan 5, 2023

This doesn't seem to solve the issue, as it's only passed to the build of Raven itself, while the issue pops up while RavenPy is being built. In order to pass it to that (CMake) build as well, I guess we have to modify the setup.py (e.g. using something like what I used in a previous suggestion here: #15833 (review)), which also calls cmake with some predefined arguments.

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 24, 2023

@boegelbot please test @ generoso

@boegelbot
Copy link
Copy Markdown
Collaborator

@boegel: Request for testing this PR well received on login1

PR test command 'EB_PR=15833 EB_ARGS= EB_CONTAINER= /opt/software/slurm/bin/sbatch --job-name test_PR_15833 --ntasks=4 ~/boegelbot/eb_from_pr_upload_generoso.sh' executed!

  • exit code: 0
  • output:
Submitted batch job 10358

Test results coming soon (I hope)...

Details

- notification for comment with ID 1443865533 processed

Message to humans: this is just bookkeeping information for me,
it is of no use to you (unless you think I have a bug, which I don't).

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 24, 2023

Test report by @boegel
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
node3125.skitty.os - Linux RHEL 8.6, x86_64, Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz (skylake_avx512), Python 3.6.8
See https://gist.github.com/7c1b0a19f7e28bf2de4510f47adb7997 for a full test report.

@boegelbot
Copy link
Copy Markdown
Collaborator

Test report by @boegelbot
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
cns2 - Linux Rocky Linux 8.5, x86_64, Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz (haswell), Python 3.6.8
See https://gist.github.com/0324f014d74381b5aa05bb00934e4c0a for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 24, 2023

@boegelbot please test @ jsc-zen2

@boegelbot
Copy link
Copy Markdown
Collaborator

@boegel: Request for testing this PR well received on jsczen2l1.int.jsc-zen2.easybuild-test.cluster

PR test command 'EB_PR=15833 EB_ARGS= /opt/software/slurm/bin/sbatch --mem-per-cpu=4000M --job-name test_PR_15833 --ntasks=8 ~/boegelbot/eb_from_pr_upload_jsc-zen2.sh' executed!

  • exit code: 0
  • output:
Submitted batch job 2255

Test results coming soon (I hope)...

Details

- notification for comment with ID 1443963056 processed

Message to humans: this is just bookkeeping information for me,
it is of no use to you (unless you think I have a bug, which I don't).

@boegelbot
Copy link
Copy Markdown
Collaborator

Test report by @boegelbot
FAILED
Build succeeded for 0 out of 1 (1 easyconfigs in total)
jsczen2c1.int.jsc-zen2.easybuild-test.cluster - Linux Rocky Linux 8.5, x86_64, AMD EPYC 7742 64-Core Processor (zen2), Python 3.6.8
See https://gist.github.com/987b445944ed55f5a8d4b8cbd2714493 for a full test report.

@boegel boegel dismissed bedroge’s stale review February 24, 2023 16:40

requested changes made

boegel
boegel previously approved these changes Feb 24, 2023
@boegel boegel modified the milestones: 4.x, next release (4.7.1?) Feb 24, 2023
@bedroge
Copy link
Copy Markdown
Contributor

bedroge commented Feb 28, 2023

Test report by @bedroge
FAILED
Build succeeded for 0 out of 1 (1 easyconfigs in total)
bob-Latitude-5300 - Linux Ubuntu 22.04, x86_64, Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz, Python 3.10.6
See https://gist.github.com/d0c9cb1ee0f20f8d7c3a953d93174ca6 for a full test report.

@bedroge
Copy link
Copy Markdown
Contributor

bedroge commented Feb 28, 2023

@boegel looks like your raw string from commit 0678a00 broke things?

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 22, 2023

@boegelbot please test @ jsc-zen2

@boegelbot
Copy link
Copy Markdown
Collaborator

@boegel: Request for testing this PR well received on jsczen2l1.int.jsc-zen2.easybuild-test.cluster

PR test command 'EB_PR=15833 EB_ARGS= /opt/software/slurm/bin/sbatch --mem-per-cpu=4000M --job-name test_PR_15833 --ntasks=8 ~/boegelbot/eb_from_pr_upload_jsc-zen2.sh' executed!

  • exit code: 0
  • output:
Submitted batch job 2410

Test results coming soon (I hope)...

Details

- notification for comment with ID 1479164900 processed

Message to humans: this is just bookkeeping information for me,
it is of no use to you (unless you think I have a bug, which I don't).

@boegelbot
Copy link
Copy Markdown
Collaborator

Test report by @boegelbot
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
jsczen2c1.int.jsc-zen2.easybuild-test.cluster - Linux Rocky Linux 8.5, x86_64, AMD EPYC 7742 64-Core Processor (zen2), Python 3.6.8
See https://gist.github.com/boegelbot/bd53821c5440f29074f10a5017677173 for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 22, 2023

@boegelbot please test @ generoso

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 22, 2023

Test report by @boegel
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
node3133.skitty.os - Linux RHEL 8.6, x86_64, Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz (skylake_avx512), Python 3.6.8
See https://gist.github.com/boegel/acdb3455fc6d79d09e96b1e65a79b926 for a full test report.

@boegelbot
Copy link
Copy Markdown
Collaborator

@boegel: Request for testing this PR well received on login1

PR test command 'EB_PR=15833 EB_ARGS= EB_CONTAINER= /opt/software/slurm/bin/sbatch --job-name test_PR_15833 --ntasks=4 ~/boegelbot/eb_from_pr_upload_generoso.sh' executed!

  • exit code: 0
  • output:
Submitted batch job 10540

Test results coming soon (I hope)...

Details

- notification for comment with ID 1479189975 processed

Message to humans: this is just bookkeeping information for me,
it is of no use to you (unless you think I have a bug, which I don't).

@boegelbot
Copy link
Copy Markdown
Collaborator

Test report by @boegelbot
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
cns1 - Linux Rocky Linux 8.5, x86_64, Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz (haswell), Python 3.6.8
See https://gist.github.com/boegelbot/5a1e2a033c4df58889057f5fab7236d0 for a full test report.

Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 22, 2023

Going in, thanks @ItIsI-Orient!

@boegel boegel merged commit 9fd2699 into easybuilders:develop Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants