Bug 280879

Summary: net/openmpi: Fix shortfloat support
Product: Ports & Packages Reporter: Laurent Chardon <laurent.chardon>
Component: Individual Port(s)Assignee: Vladimir Druzenko <vvd>
Status: Closed FIXED    
Severity: Affects Some People CC: uzsolt, vvd
Priority: --- Flags: uzsolt: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 280883    
Attachments:
Description Flags
net/openmpi: Fix shortfloat support laurent.chardon: maintainer-approval+

Description Laurent Chardon 2024-08-17 12:12:50 UTC
Created attachment 252843 [details]
net/openmpi: Fix shortfloat support

- Improve the test for half precision support. The old test gave
incorrect results, in particular for older compilers.
The test is now compiler independent since both gcc and clang
have supported __Float16 for a long while.
- Remove unused code for plist substitution of NO_MCA_PATCHER_OVERWRITE

QA

portlit: OK
poudriere: OK
Comment 1 Zsolt Udvari freebsd_committer freebsd_triage 2024-08-17 18:18:31 UTC
^Triage: if you're the maintainer please set maintainer-feedback to plus!
Comment 2 Laurent Chardon 2024-08-18 00:57:47 UTC
(In reply to Zsolt Udvari from comment #1)

Will do, thanks.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-18 01:47:45 UTC
1. PORTVERSION => DISTVERSION

2. Removed ${COMPILER_VERSION} >= 170
14.0 still supported and have llvm 16 in base - is it ok?
Comment 4 Laurent Chardon 2024-08-18 07:38:18 UTC
(In reply to Vladimir Druzenko from comment #3)

1. Good catch. It's been like this since 2015. Do you need me to produce a new patch?

2. Yes, I've tested on 14.0. In fact, it's to fix openmpi on 14.0 that I'm making this change.
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-18 11:40:17 UTC
(In reply to Laurent Chardon from comment #4)
1. I changed it already locally.
2. ok.
Committing.
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-18 11:43:24 UTC
Do you want merge-quarterly?
Comment 7 Laurent Chardon 2024-08-18 11:48:43 UTC
No need to merge quarterly. Thank you for the commit!
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-08-18 11:50:44 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=595a5d5fa099770ebece23deb61fa364eba955db

commit 595a5d5fa099770ebece23deb61fa364eba955db
Author:     Laurent Chardon <laurent.chardon@gmail.com>
AuthorDate: 2024-08-18 11:42:14 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-18 11:42:14 +0000

    net/openmpi: Fix shortfloat support

    - Improve the test for half precision support. The old test gave
    incorrect results, in particular for older compilers.
    The test is now compiler independent since both gcc and clang
    have supported __Float16 for a long while.
    - Remove unused code for plist substitution of NO_MCA_PATCHER_OVERWRITE

    PR:     280879

 net/openmpi/Makefile | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-18 11:51:05 UTC
Thanks.