Skip to content

Commit

Permalink
Bugfix in the constructor when providing tiledims
Browse files Browse the repository at this point in the history
  • Loading branch information
smillerc committed Sep 28, 2022
1 parent d0ba1ab commit 719ea1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/Manifest.toml
*.csv
.vscode
.vscode
*.png
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BlockHaloArrays"
uuid = "8029ca6b-11ad-4a59-88a2-2e6eee4ef8a2"
authors = ["Sam Miller <[email protected]> and contributors"]
version = "0.4.0"
version = "0.4.1"

[deps]
EllipsisNotation = "da5c29d0-fa7d-589e-88eb-ea29b0a81949"
Expand Down
4 changes: 2 additions & 2 deletions src/BlockHaloArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ end
"""
Construct a BlockHaloArray from a normal Array
"""
function BlockHaloArray(A::AbstractArray{T,N}, halodims::NTuple{N2,Integer}, nhalo::Integer, nblocks=nthreads(), tile_dims=nothing) where {T,N,N2}
function BlockHaloArray(A::AbstractArray{T,N}, halodims::NTuple{N2,Integer}, nhalo::Integer, nblocks=nthreads(); use_numa=true, tile_dims=nothing) where {T,N,N2}
dims = size(A)
A_blocked = BlockHaloArray(dims, halodims, nhalo, nblocks; T=T, tile_dims=tile_dims)
A_blocked = BlockHaloArray(dims, halodims, nhalo, nblocks; T=T, use_numa=use_numa, tile_dims=tile_dims)
block_ranges = A_blocked.global_blockranges

for tid in LinearIndices(block_ranges)
Expand Down

2 comments on commit 719ea1d

@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/69121

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.1 -m "<description of version>" 719ea1d4feb989ada77850f37c0c6dde2ab9043c
git push origin v0.4.1

Please sign in to comment.