Skip to content

Test not using CPUSummary #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
1 change: 0 additions & 1 deletion src/Polyester.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ using PolyesterWeave:
UnsignedIteratorEarlyStop,
assume,
disable_polyester_threads
using CPUSummary: num_cores

export batch, @batch, disable_polyester_threads

Expand Down
1 change: 1 addition & 0 deletions src/closure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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."))
Expand Down