Skip to content
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

set_surface_albedo! is not GPU compatible #2781

Closed
Sbozzolo opened this issue Mar 11, 2024 · 1 comment
Closed

set_surface_albedo! is not GPU compatible #2781

Sbozzolo opened this issue Mar 11, 2024 · 1 comment

Comments

@Sbozzolo
Copy link
Member

Currently, the function set_surface_albedo! moves some arrays back and forth from CPU to GPU. (see https://buildkite.com/clima/climaatmos-gpulongruns/builds/84#018e2fc1-6d22-4e69-a918-7ecb3831f69d/150-231)

	Argument 4 to your kernel function is of type Base.Broadcast.Broadcasted{CUDA.CuArrayStyle{2}, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}, typeof(*), Tuple{Base.Broadcast.Extruded{Matrix{Float64}, Tuple{Bool, Bool}, Tuple{Int64, Int64}}, Base.Broadcast.Extruded{CUDA.CuDeviceMatrix{Float32, 1}, Tuple{Bool, Bool}, Tuple{Int64, Int64}}}}, which is not isbits:
    .args is of type Tuple{Base.Broadcast.Extruded{Matrix{Float64}, Tuple{Bool, Bool}, Tuple{Int64, Int64}}, Base.Broadcast.Extruded{CUDA.CuDeviceMatrix{Float32, 1}, Tuple{Bool, Bool}, Tuple{Int64, Int64}}} which is not isbits.
    .1 is of type Base.Broadcast.Extruded{Matrix{Float64}, Tuple{Bool, Bool}, Tuple{Int64, Int64}} which is not isbits.
	      .x is of type Matrix{Float64} which is not isbits.
@Sbozzolo Sbozzolo added the GPU label Mar 11, 2024
@Sbozzolo Sbozzolo added this to the O1.2.5 1 SYPD for AMIP milestone Mar 11, 2024
@szy21
Copy link
Member

szy21 commented Mar 14, 2024

closed by #2787

@szy21 szy21 closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants