From 531e011c0fdad466982e5f78c5e0f0e0ed472cbd Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Fri, 11 Jul 2025 11:12:33 -0300 Subject: [PATCH] Test not using CPUSummary --- Project.toml | 2 -- src/Polyester.jl | 1 - src/closure.jl | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 6948a24..96c1d43 100644 --- a/Project.toml +++ b/Project.toml @@ -6,7 +6,6 @@ version = "0.7.18" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" BitTwiddlingConvenienceFunctions = "62783981-4cbd-42fc-bca8-16325de8dc4b" -CPUSummary = "2a0fbf3d-bb9c-48f3-b0a9-814d99fd7ab9" IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173" ManualMemory = "d125e4d3-2237-4719-b19c-fa641b8a4667" PolyesterWeave = "1d0040c9-8b98-4ee7-8388-3f51789ca0ad" @@ -18,7 +17,6 @@ ThreadingUtilities = "8290d209-cae3-49c0-8002-c8c24d57dab5" [compat] ArrayInterface = "7" BitTwiddlingConvenienceFunctions = "0.1" -CPUSummary = "0.1.2 - 0.1.8, 0.1.11, 0.2.1" IfElse = "0.1" ManualMemory = "0.1.3" PolyesterWeave = "0.1.8, 0.2" diff --git a/src/Polyester.jl b/src/Polyester.jl index b27d9ab..e2562f6 100644 --- a/src/Polyester.jl +++ b/src/Polyester.jl @@ -19,7 +19,6 @@ using PolyesterWeave: UnsignedIteratorEarlyStop, assume, disable_polyester_threads -using CPUSummary: num_cores export batch, @batch, disable_polyester_threads diff --git a/src/closure.jl b/src/closure.jl index c8e3386..82520d1 100644 --- a/src/closure.jl +++ b/src/closure.jl @@ -253,6 +253,7 @@ function makestatic!(expr) end expr end +num_cores() = ccall(:jl_effective_threads, Int32, ()) function enclose(exorig::Expr, minbatchsize, per, threadlocal, reduction, stride, mod) Meta.isexpr(exorig, :for, 2) || throw(ArgumentError("Expression invalid; should be a for loop."))