Skip to content

GPU broadcast regression with ArrayFuse on recent CUDA #1626

Closed
@ChrisRackauckas

Description

@ChrisRackauckas

MWE:

using OrdinaryDiffEq, CUDA, Test
CUDA.allowscalar(false)
N = 256
# Define the initial condition as normal arrays
u0 = zeros(N, N, 3)
u0 .= 1.0
gu0 = CuArray(Float32.(u0))

# Define the discretized PDE as an ODE function
function f(du, u, p, t)
    du .= u
end
prob2 = ODEProblem(f, gu0, (0.0, 10.0))
solve(prob2, ORK256(), save_everystep=false, save_start=false, dt=0.01)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions