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

IGG on Julia 1.10 #80

Closed
luraess opened this issue Dec 11, 2023 · 2 comments
Closed

IGG on Julia 1.10 #80

luraess opened this issue Dec 11, 2023 · 2 comments
Assignees

Comments

@luraess
Copy link
Collaborator

luraess commented Dec 11, 2023

On Julia 1.10-rc2, the follow issue occurs during ini of IGG. Possibly similar to omlins/ParallelStencil.jl#125

Stacktrace:

julia> init_global_grid(4, 3, 2;device_type="AMDGPU")
Global grid: 4x3x2 (nprocs: 1, dims: 1x1x1)
ERROR: No function of the module can be called before init_global_grid() or after finalize_global_grid().
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] check_initialized()
   @ ImplicitGlobalGrid /pfs/lustrep2/scratch/project_465000557/lurass/ImplicitGlobalGrid.jl/src/shared.jl:85
 [3] global_grid()
   @ ImplicitGlobalGrid /pfs/lustrep2/scratch/project_465000557/lurass/ImplicitGlobalGrid.jl/src/shared.jl:82
 [4] cuda_enabled()
   @ ImplicitGlobalGrid /pfs/lustrep2/scratch/project_465000557/lurass/ImplicitGlobalGrid.jl/src/shared.jl:107
 [5] select_device()
   @ ImplicitGlobalGrid /pfs/lustrep2/scratch/project_465000557/lurass/ImplicitGlobalGrid.jl/src/select_device.jl:16
 [6] _select_device()
   @ ImplicitGlobalGrid /pfs/lustrep2/scratch/project_465000557/lurass/ImplicitGlobalGrid.jl/src/select_device.jl:38
 [7] init_global_grid(nx::Int64, ny::Int64, nz::Int64; dimx::Int64, dimy::Int64, dimz::Int64, periodx::Int64, periody::Int64, periodz::Int64, overlaps::Tuple{…}, halowidths::Tuple{…}, disp::Int64, reorder::Int64, comm::MPI.Comm, init_MPI::Bool, device_type::String, select_device::Bool, quiet::Bool)
   @ ImplicitGlobalGrid /pfs/lustrep2/scratch/project_465000557/lurass/ImplicitGlobalGrid.jl/src/init_global_grid.jl:105
 [8] top-level scope
   @ REPL[7]:1
 [9] top-level scope
   @ /scratch/project_465000557/lurass/julia_local/julia_depot/packages/AMDGPU/goZLq/src/tls.jl:200
Some type information was truncated. Use `show(err)` to see complete types.

julia> 
@omlins
Copy link
Collaborator

omlins commented Dec 14, 2023

The root cause for it is this bug in Julia 1.10: JuliaLang/julia#52531

@omlins
Copy link
Collaborator

omlins commented Jan 16, 2024

The above bug has been solved.

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

No branches or pull requests

2 participants