Skip to content

Commit

Permalink
Switch homebrew to use system hwloc and jemalloc (chapel-lang#25148)
Browse files Browse the repository at this point in the history
Switches the homebrew formula in the chapel tree to use a system install
of hwloc, which allows chapel to use qthreads. This results in better
performance for users. This also uses a system install of jemalloc,
which also increases performance.

- [x] Tested locally by install chapel from the homebrew formula and
running `chpl examples/hello.chpl && ./hello`

To be merged after chapel-lang#25145 and
chapel-lang#25158

Resolves chapel-lang#24655
Resolves chapel-lang#24931

[Reviewed by @stonea]
  • Loading branch information
jabraham17 authored Jun 6, 2024
2 parents 1b1b920 + 17f89b9 commit bf0f659
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions util/packaging/homebrew/chapel-main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class Chapel < Formula

depends_on "cmake"
depends_on "gmp"
depends_on "hwloc"
depends_on "jemalloc"
depends_on "llvm@17"
depends_on "[email protected]"

Expand Down Expand Up @@ -47,8 +49,9 @@ def install
(libexec/"chplconfig").write <<~EOS
CHPL_RE2=bundled
CHPL_GMP=system
CHPL_MEM=cstdlib
CHPL_TASKS=fifo
CHPL_MEM=jemalloc
CHPL_TARGET_JEMALLOC=system
CHPL_HWLOC=system
CHPL_LLVM_CONFIG=#{llvm.opt_bin}/llvm-config
CHPL_LLVM_GCC_PREFIX=none
EOS
Expand Down

0 comments on commit bf0f659

Please sign in to comment.