Skip to content

update PyTorch easyblock to configure without breakpad support on POWER#2763

Merged
branfosj merged 2 commits intoeasybuilders:developfrom
Flamefire:20220708091225_new_pr_pytorch
Jul 20, 2022
Merged

update PyTorch easyblock to configure without breakpad support on POWER#2763
branfosj merged 2 commits intoeasybuilders:developfrom
Flamefire:20220708091225_new_pr_pytorch

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

@Flamefire Flamefire commented Jul 8, 2022

(created using eb --new-pr)

Breakpad (Added in 1.10, removed in 1.12.0) doesn't support PPC

Flamefire added 2 commits July 8, 2022 09:12
When comparing a `LooseVersion` instance against a string the string is
automatically converted to a `LooseVersion` instance.
Hence we can construct a `LooseVersion` object once and compare against
strings in the condition which makes the code more readable.
Copy link
Copy Markdown
Member

@branfosj branfosj left a comment

Choose a reason for hiding this comment

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

lgtm

@branfosj branfosj added this to the next release (4.6.1?) milestone Jul 20, 2022
@branfosj
Copy link
Copy Markdown
Member

Test report by @branfosj

Overview of tested easyconfigs (in order)

  • SUCCESS PyTorch-1.10.0-foss-2021a.eb

Build succeeded for 1 out of 1 (1 easyconfigs in total)
bear-pg0105u36b.bear.cluster - Linux RHEL 8.6, x86_64, Intel(R) Xeon(R) Platinum 8360Y CPU @ 2.40GHz (icelake), Python 3.6.8
See https://gist.github.com/0edd0230f07b035a0ab9ef9ee43e6efa for a full test report.

@branfosj
Copy link
Copy Markdown
Member

Going in, thanks @Flamefire!

@branfosj branfosj merged commit bb25602 into easybuilders:develop Jul 20, 2022
@Flamefire Flamefire deleted the 20220708091225_new_pr_pytorch branch July 21, 2022 07:46
@boegel boegel changed the title PyTorch: Disable breakpad on PPC update PyTorch easyblock to configure without breakpad support on POWER Aug 3, 2022
if min_version and pytorch_version < min_version:
result = False
if max_version and pytorch_version >= LooseVersion(max_version):
if max_version and pytorch_version >= max_version:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Flamefire Did you check if automatically "casting" a string value to a LooseVersion object is also done in Python 2.7 when versions are being compared?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes:

$ python2 
Python 2.7.18 (default, Jul  1 2022, 12:27:04) 
[GCC 9.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.version import LooseVersion
>>> LooseVersion('1.0') == '1.0'
True
>>> LooseVersion('1.0') != '1.0'
False

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.

3 participants