public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/julia] epel10: Better fix for number of cores on 32-bit
@ 2026-12-01 21:39 Milan Bouchet-Valat
  0 siblings, 0 replies; only message in thread
From: Milan Bouchet-Valat @ 2026-12-01 21:39 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/julia
Branch : epel10
Commit : 0b5b87505d969387c07b333910337ccec1f4e1b9
Author : Milan Bouchet-Valat <nalimilan@club.fr>
Date   : 2021-02-14T21:55:38+01:00
Stats  : +6/-7 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/julia/c/0b5b87505d969387c07b333910337ccec1f4e1b9?branch=epel10

Log:
Better fix for number of cores on 32-bit

---
diff --git a/julia.spec b/julia.spec
index 96d8539..3d0721d 100644
--- a/julia.spec
+++ b/julia.spec
@@ -204,14 +204,8 @@ cp -p %SOURCE6 contrib/julia.svg
 %global cmake CMAKE=cmake
 %endif
 
-%global ncpus $(echo %{?_smp_mflags} | sed s/-j//)
-# Too many threads/processes can trigger memory issues in cmdlineargs test
-%ifarch %{ix86}
-%global ncpus $((%{ncpus} > 10 ? 10 : %{ncpus}))
-%endif
-
 # About build, build_libdir and build_bindir, see https://github.com/JuliaLang/julia/issues/5063#issuecomment-32628111
-%global commonopts USE_SYSTEM_LLVM=0 USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_MBEDTLS=1 USE_SYSTEM_CURL=1 USE_SYSTEM_PATCHELF=1 USE_SYSTEM_LIBM=0 USE_SYSTEM_OPENLIBM=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_P7ZIP=1 USE_SYSTEM_NGHTTP2=1 USE_SYSTEM_CSL=1 USE_BINARYBUILDER=0 BUNDLE_DEBUG_LIBS=0 JULIA_SPLITDEBUG=1 TAGGED_RELEASE_BANNER="Fedora %{fedora} build" VERBOSE=1 %{march} %{cpu_target} %{blas} %{suitesparse_lib} prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} libexecdir=%{_libexecdir} datarootdir=%{_datarootdir} includedir=%{_includedir} sysconfdir=%{_sysconfdir} build_prefix=%{_builddir}/%{buildsubdir}/build%{_prefix} JULIA_CPU_THREADS=%{ncpus}
+%global commonopts USE_SYSTEM_LLVM=0 USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_MBEDTLS=1 USE_SYSTEM_CURL=1 USE_SYSTEM_PATCHELF=1 USE_SYSTEM_LIBM=0 USE_SYSTEM_OPENLIBM=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_P7ZIP=1 USE_SYSTEM_NGHTTP2=1 USE_SYSTEM_CSL=1 USE_BINARYBUILDER=0 BUNDLE_DEBUG_LIBS=0 JULIA_SPLITDEBUG=1 TAGGED_RELEASE_BANNER="Fedora %{fedora} build" VERBOSE=1 %{march} %{cpu_target} %{blas} %{suitesparse_lib} prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} libexecdir=%{_libexecdir} datarootdir=%{_datarootdir} includedir=%{_includedir} sysconfdir=%{_sysconfdir} build_prefix=%{_builddir}/%{buildsubdir}/build%{_prefix} JULIA_CPU_THREADS=$(echo %{?_smp_mflags} | sed s/-j//)
 
 
 %build
@@ -250,6 +244,11 @@ sed "s/ipa = getipaddr()/error()/" -i test/choosetests.jl
 # Disabling network also disables distributed processing
 sed "s/if net_on/if true/" -i test/runtests.jl
 
+# Too many threads/processes can trigger memory issues in cmdlineargs test
+%ifarch %{ix86}
+sed "s/cpu_threads = max(2\*cpu_threads, min(200, 10\*cpu_threads))/cpu_threads = 5/" -i test/cmdlineargs.jl
+%endif
+
 # Disable tests known to fail currently
 %ifarch ppc64le %{arm} aarch64
 sed -i 's/\"numbers\",//' test/choosetests.jl

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01 21:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 21:39 [rpms/julia] epel10: Better fix for number of cores on 32-bit Milan Bouchet-Valat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox