We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to index into a field which has nothing topology in a kernel, e.g.:
@kernel function add_one!(A) i, j = @index(Global, NTuple) A[i, j] += 1 end
then it works on CPU, but hits a dynamic function invocation on line 82 here:
Oceananigans.jl/src/Grids/grid_utils.jl
Lines 81 to 89 in 2b601f1
could we rewrite this like:
@inline function Base.size(loc::NTuple{N},...) where N
instead?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I try to index into a field which has nothing topology in a kernel, e.g.:
then it works on CPU, but hits a dynamic function invocation on line 82 here:
Oceananigans.jl/src/Grids/grid_utils.jl
Lines 81 to 89 in 2b601f1
could we rewrite this like:
instead?
The text was updated successfully, but these errors were encountered: