From 31886c9824dc2b00ccf3ac275fa2fbbd0eb3acdd Mon Sep 17 00:00:00 2001 From: "Miller, Samuel" Date: Thu, 6 Oct 2022 09:32:17 -0400 Subject: [PATCH] Remove ThreadPinning as a dep --- Project.toml | 4 +--- src/BlockHaloArrays.jl | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index 0ff96b0..124ee6f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,21 +1,19 @@ name = "BlockHaloArrays" uuid = "8029ca6b-11ad-4a59-88a2-2e6eee4ef8a2" authors = ["Sam Miller and contributors"] -version = "0.4.5" +version = "0.4.6" [deps] EllipsisNotation = "da5c29d0-fa7d-589e-88eb-ea29b0a81949" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" NumaAllocators = "21436f30-1b4a-4f08-87af-e26101bb5379" OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881" -ThreadPinning = "811555cd-349b-4f26-b7bc-1f208b848042" ThreadPools = "b189fb0b-2eb5-4ed4-bc0c-d34c51242431" [compat] EllipsisNotation = "1" NumaAllocators = "0.2" OffsetArrays = "1" -ThreadPinning = "0.4" ThreadPools = "2" julia = "1.6" diff --git a/src/BlockHaloArrays.jl b/src/BlockHaloArrays.jl index 7236976..5b06f0e 100644 --- a/src/BlockHaloArrays.jl +++ b/src/BlockHaloArrays.jl @@ -4,7 +4,7 @@ using Base.Threads, Base.Iterators, LinearAlgebra import Base.eltype, Base.size, Base.axes, Base.copy! import Base.eachindex, Base.first, Base.firstindex, Base.last, Base.lastindex -using ThreadPools, ThreadPinning, NumaAllocators +using ThreadPools, NumaAllocators using EllipsisNotation using OffsetArrays @@ -356,7 +356,7 @@ function copy!(BHA::BlockHaloArray, AA::AbstractArray) ThreadPools.@tspawnat block_id _array_to_block!(BHA, AA, block_id) end end - + function _array_to_block!(BHA::BlockHaloArray, AA::AbstractArray, block_id::Int) dv = domainview(BHA, block_id) av = view(AA, BHA.global_blockranges[block_id]...) @@ -365,7 +365,7 @@ end """ copy!(dst, src) -> dst - + Copy from a BlockHaloArray into an AbstractArray. The global dimensions of the BlockHaloArray must be the same as the AbstractArray """