-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
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
enstrophy and cuda problem #296
Comments
Can you post your whole script? |
The params seem to include a matrix. Probably that’s the issue. |
Can you print |
You are correct Navid, thanks ! I failed to create a CUDA array somehow. Will fix this after a surf ! Thanks :) |
I’m opening it to attempt to make this user friendlier. |
Sure maybe there's a way to implement an error message such that when dev=GPU(), and eta is not a cuda array it returns an error message when constructing the problem (prob = SingleLayerQG.Problem(dev; nx=n, Lx=L, eta=η, deformation_radius=deformation_radius, dt=dt, stepper=stepper)) |
Was thinking the constructor would convert it to a CuArray if dev is GPU. |
When creating a diagnostic for enstrophy I get the following error (no problem for KE and PE)
The text was updated successfully, but these errors were encountered: