Skip to content

Commit 90f2f31

Browse files
committed
Removed unused CPUSummary summary call
1 parent a3a8314 commit 90f2f31

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ version = "0.7.18"
66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
88
BitTwiddlingConvenienceFunctions = "62783981-4cbd-42fc-bca8-16325de8dc4b"
9-
CPUSummary = "2a0fbf3d-bb9c-48f3-b0a9-814d99fd7ab9"
109
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
1110
ManualMemory = "d125e4d3-2237-4719-b19c-fa641b8a4667"
1211
PolyesterWeave = "1d0040c9-8b98-4ee7-8388-3f51789ca0ad"
@@ -18,7 +17,6 @@ ThreadingUtilities = "8290d209-cae3-49c0-8002-c8c24d57dab5"
1817
[compat]
1918
ArrayInterface = "7"
2019
BitTwiddlingConvenienceFunctions = "0.1"
21-
CPUSummary = "0.1.2 - 0.1.8, 0.1.11, 0.2.1"
2220
IfElse = "0.1"
2321
ManualMemory = "0.1.3"
2422
PolyesterWeave = "0.1.8, 0.2"

src/Polyester.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ using PolyesterWeave:
1919
UnsignedIteratorEarlyStop,
2020
assume,
2121
disable_polyester_threads
22-
using CPUSummary: num_cores
2322

2423
export batch, @batch, disable_polyester_threads
2524

src/closure.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ function enclose(exorig::Expr, minbatchsize, per, threadlocal, reduction, stride
348348
# typexpr_incomplete is missing `funcs`
349349
# outerloop = Symbol("##outer##")
350350
num_thread_expr::Union{Symbol,Expr} = if per === :core
351-
Expr(:call, min, Symbol("##NUM#THREADS##"), Expr(:call, num_cores))
351+
Expr(:call, min, Symbol("##NUM#THREADS##"), Expr(:call, Threads.nthreads()))
352352
else
353353
Symbol("##NUM#THREADS##")
354354
end

0 commit comments

Comments
 (0)