Skip to content

Commit

Permalink
Remove ThreadPinning as a dep
Browse files Browse the repository at this point in the history
  • Loading branch information
smillerc committed Oct 6, 2022
1 parent 3502fe3 commit 31886c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
name = "BlockHaloArrays"
uuid = "8029ca6b-11ad-4a59-88a2-2e6eee4ef8a2"
authors = ["Sam Miller <[email protected]> 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"

Expand Down
6 changes: 3 additions & 3 deletions src/BlockHaloArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]...)
Expand All @@ -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
"""
Expand Down

2 comments on commit 31886c9

@smillerc
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/69650

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.6 -m "<description of version>" 31886c9824dc2b00ccf3ac275fa2fbbd0eb3acdd
git push origin v0.4.6

Please sign in to comment.