Skip to content

Conversation

@omlins
Copy link
Owner

@omlins omlins commented Dec 1, 2021

Concretely, it adds support for:

•  @ps_show

•  @ps_println

│ Advanced

│ • @gridDim

│ • @blockIdx

│ • @Blockdim

│ • @threadIdx

│ • @sync_threads

│ • @sharedmem

@omlins omlins requested a review from luraess December 1, 2021 18:52
@omlins
Copy link
Owner Author

omlins commented Dec 1, 2021

One issue with the unit tests was found:
JuliaLang/julia#43289

@test_throws ArgumentError parallel_indices(:((ix,iy,iz)), :(f()=(99; return something))) # Error: function does not return nothing.
@test_throws ArgumentError parallel_indices(:((ix,iy,iz)), :(f()=(99; if x return y end; return))) # Error: function contains more than one return statement.
#TODO: this tests does not pass anymore for unknown reasons:
#@test_throws ArgumentError parallel_indices(:((ix,iy,iz)), :(f()=(99; if x return y end; return))) # Error: function contains more than one return statement.
Copy link
Owner Author

Choose a reason for hiding this comment

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

This issue was reported here:
JuliaLang/julia#43289

Copy link
Collaborator

@luraess luraess left a comment

Choose a reason for hiding this comment

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

All looking good.

One may want to add:

  • a reference to this feature within the README (maybe pointing to the shmem diffusion example code)
  • update the REPL output snippet ? ParallelStencil in Module documentation callable from the Julia REPL / IJulia ?

@luraess luraess self-requested a review December 2, 2021 08:22
@omlins omlins merged commit 8396ba2 into main Dec 3, 2021
@omlins omlins deleted the shmem branch December 3, 2021 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants