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

Soil integration Tests fail when run on GPU #860

Open
imreddyTeja opened this issue Oct 17, 2024 · 0 comments · May be fixed by #739
Open

Soil integration Tests fail when run on GPU #860

imreddyTeja opened this issue Oct 17, 2024 · 0 comments · May be fixed by #739
Labels
bug Something isn't working

Comments

@imreddyTeja
Copy link
Contributor

Describe the bug

Running the Soil integration test, specifically the "Phase change source term" test, causes a CUDA error

Phase change source term, FT = Float32: Error During Test at /home/treddy/ClimaLand.jl/test/standalone/Soil/soiltest.jl:644
  Got exception outside of a @test
  InvalidIRError: compiling MethodInstance for ClimaCoreCUDAExt.knl_copyto!(::ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}, ::Base.Broadcast.Broadcasted{ClimaCore.DataLayouts.VFStyle{200, CUDA.CuArray{Float32, N, CUDA.DeviceMemory} where N}, NTuple{5, Base.OneTo{Int64}}, typeof(ClimaCore.RecursiveApply.radd), Tuple{ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}, Base.Broadcast.Broadcasted{ClimaCore.DataLayouts.VFStyle{200, CUDA.CuArray{Float32, N, CUDA.DeviceMemory} where N}, Nothing, typeof(ClimaCore.RecursiveApply.rsub), Tuple{Base.Broadcast.Broadcasted{ClimaCore.DataLayouts.VFStyle{200, CUDA.CuArray{Float32, N, CUDA.DeviceMemory} where N}, Nothing, typeof(phase_change_source), Tuple{ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}, ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}, ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}, Base.Broadcast.Broadcasted{ClimaCore.DataLayouts.VFStyle{200, CUDA.CuArray{Float32, N, CUDA.DeviceMemory} where N}, Nothing, typeof(thermal_time), Tuple{Base.Broadcast.Broadcasted{ClimaCore.DataLayouts.VFStyle{200, CUDA.CuArray{Float32, N, CUDA.DeviceMemory} where N}, Nothing, typeof(volumetric_heat_capacity), Tuple{ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}, ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}, Float32, Tuple{ClimaLand.Parameters.LandParameters{Float32, Thermodynamics.Parameters.ThermodynamicsParameters{Float32}, SurfaceFluxes.Parameters.SurfaceFluxesParameters{Float32, SurfaceFluxes.UniversalFunctions.BusingerParams{Float32}, Thermodynamics.Parameters.ThermodynamicsParameters{Float32}}, Insolation.Parameters.InsolationParameters{Float32}}}}}, ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}, ClimaCore.DataLayouts.VF{Float32, 200, CUDA.CuDeviceMatrix{Float32, 1}}}}, Float32, Float32, Tuple{vanGenuchten{Float32}}, Tuple{ClimaLand.Parameters.LandParameters{Float32, Thermodynamics.Parameters.ThermodynamicsParameters{Float32}, SurfaceFluxes.Parameters.SurfaceFluxesParameters{Float32, SurfaceFluxes.UniversalFunctions.BusingerParams{Float32}, Thermodynamics.Parameters.ThermodynamicsParameters{Float32}}, Insolation.Parameters.InsolationParameters{Float32}}}}}}}}}, ::ClimaCore.DataLayouts.UniversalSize{1, 1, 200, Int64}) resulted in invalid LLVM IR
  Reason: unsupported dynamic function invocation (call to matric_potential)

To Reproduce

Ideally a minimal reproducible example:

include("test/standalone/Soil/soiltest")

Or even better, add it as a unit test, and open pull request.

Project

If not using the `examples` project: ``` paste your Project.toml here. ``` ``` paste your Manifest.toml here. ```

System details

Any relevant system information:

  • Julia version: v"1.10.0"
  • operating system : "Red Hat Enterprise Linux" "8.10 (Ootpa)"
  • modules loaded on cluster (module list)
  1. openmpi/4.1.5-mpitrampoline 2) julia/1.10.0 3) cuda/julia-pref 4) common

Related issues / PRs

Please add any relevant links.

@imreddyTeja imreddyTeja added the bug Something isn't working label Oct 17, 2024
@imreddyTeja imreddyTeja changed the title Tests fail when run on GPU Soil integration Tests fail when run on GPU Oct 22, 2024
@juliasloan25 juliasloan25 linked a pull request Oct 23, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant