Skip to content

Expand Homebrew formula to include multi-locale and gpu support#27564

Merged
jabraham17 merged 13 commits intochapel-lang:mainfrom
jabraham17:expand-homebrew
Aug 7, 2025
Merged

Expand Homebrew formula to include multi-locale and gpu support#27564
jabraham17 merged 13 commits intochapel-lang:mainfrom
jabraham17:expand-homebrew

Conversation

@jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Jul 25, 2025

Expands the Homebrew formula to include multi-locale and gpu support. This PR adds runtime builds for Chapel with multilocale support over udp and smp, as well as CHPL_GPU=cpu.

Resolves #27333
Resolves #12433

Other changes:

  • adds the missing --gpu flag to the compiler to set the CHPL_GPU env as a compiler flag
  • improves the error message for not setting CHPL_GPU to not suggest none, which is not a valid value
  • add CHPL_IGNORE_GASNET_LD to avoid issues with GASNet using the homebrew shim. This is undocumented and should not be used by users
  • fixed make check with CHPL_GPU=cpu
  • removed unused CHPL_HOST_USE_SYSTEM_LIBCXX

Testing:

  • build chapel from new formula
  • brew test chapel
  • brew style chapel

[Reviewed by @arifthpe]

…u builds

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
@jabraham17 jabraham17 self-assigned this Aug 1, 2025
@jabraham17 jabraham17 marked this pull request as ready for review August 5, 2025 17:52
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
@jabraham17 jabraham17 merged commit 123d123 into chapel-lang:main Aug 7, 2025
10 checks passed
@jabraham17 jabraham17 deleted the expand-homebrew branch August 7, 2025 20:47
@bradcray
Copy link
Member

Nice!

arifthpe added a commit to arifthpe/homebrew-core that referenced this pull request Sep 26, 2025
Apply the following improvements/fixes from upstream releases 2.5 and
2.6:
- chapel-lang/chapel#26937
- chapel-lang/chapel#27535
- chapel-lang/chapel#27546
- chapel-lang/chapel#27564
- chapel-lang/chapel#27626
- chapel-lang/chapel#27653

Additionally, disable gasnet+smp build and test on linux/arm64 to work
around an as yet undiagnosed build failure on the platform.

Includes a hack to allow gasnet+smp checkChplInstall testing to succeed
on a system with less than 4 cores, to be removed once there's an
upstream fix.

Adds a requirement of arm64 arch on macOS, as we've encountered
portability issues with gasnet+smp on x86_64 macOS 14, which we don't
have the time to fix at the moment and aren't worth denying the feature
to other platforms over.
arifthpe added a commit to arifthpe/homebrew-core that referenced this pull request Sep 26, 2025
jabraham17 added a commit to jabraham17/homebrew-core that referenced this pull request Oct 7, 2025
Apply the following improvements/fixes from upstream releases 2.5 and
2.6:
- chapel-lang/chapel#26937
- chapel-lang/chapel#27535
- chapel-lang/chapel#27546
- chapel-lang/chapel#27564
- chapel-lang/chapel#27626
- chapel-lang/chapel#27653
- chapel-lang/chapel#27865

Addresses feedback given in Homebrew#244962

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can we have a cpu-as-device enabled homebrew formula? Multi-locale Chapel through homebrew for Mac

3 participants