no method matching GPU or "KernelAbstractions" not found #4774
Unanswered
XinghaoJ
asked this question in
Computational science!
Replies: 1 comment 3 replies
-
It seems that you have a typo in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I use Julia/1.10.9 run my code, there are some errors showing up.
using Random
using Printf
using Oceananigans
using Oceananigans.Units: minute, minutes, hour, hours, days,day
....
grid = RectilinearGrid(GPU(), size = (Nx, Ny, Nz),
x = (0, Lx),
y = (0, Ly),
z = z_faces)
....
u_bsc = FieldBoundaryConditions(top=FluxBoundaryCondition(τx));
v_bsc = FieldBoundaryConditions(top=FluxBoundaryCondition(τy));
b_bsc = FieldBoundaryConditions(top=FluxBoundaryCondition(B_surf),bottom = GradientBuondaryCondition(dbdz_interior));
boundary_conditions=(u=u_bsc, v=v_bsc, b=b_bsc);
Run above code and I got


ERROR: LoadError: MethodError: no method matching GPU().
So I add "using CUDA", but then I got
ERROR: LoadError: UndefVarError:
GradientBuondaryCondition
not definedBut when I changed Julia/1.10.9 to Julia/1.10.2 with same enviroment(v1.10), and run this code, I got
ERROR: LoadError: KeyError: key "KernelAbstractions" not found
Beta Was this translation helpful? Give feedback.
All reactions