Skip to content

Commit

Permalink
move module imports triggering extensions before ImplicitGlobalGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
omlins committed Jan 18, 2024
1 parent 441aacd commit ead45ca
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/test_finalize_global_grid.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
push!(LOAD_PATH, "../src")
using Test
import MPI, CUDA, AMDGPU
using ImplicitGlobalGrid; GG = ImplicitGlobalGrid
import MPI
import ImplicitGlobalGrid: @require


Expand Down
2 changes: 1 addition & 1 deletion test/test_gather.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
push!(LOAD_PATH, "../src")
using Test
import MPI, CUDA, AMDGPU
using ImplicitGlobalGrid; GG = ImplicitGlobalGrid
import MPI
import ImplicitGlobalGrid: @require


Expand Down
2 changes: 1 addition & 1 deletion test/test_init_global_grid.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
push!(LOAD_PATH, "../src")
using Test
import MPI, CUDA, AMDGPU
using ImplicitGlobalGrid; GG = ImplicitGlobalGrid
import MPI
import ImplicitGlobalGrid: @require


Expand Down
5 changes: 2 additions & 3 deletions test/test_select_device.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# NOTE: All tests of this file can be run with any number of processes.
push!(LOAD_PATH, "../src")
using Test
using ImplicitGlobalGrid; GG = ImplicitGlobalGrid
import MPI
using CUDA
using AMDGPU
using CUDA, AMDGPU
using ImplicitGlobalGrid; GG = ImplicitGlobalGrid
import ImplicitGlobalGrid: @require

test_cuda = CUDA.functional()
Expand Down
2 changes: 1 addition & 1 deletion test/test_tools.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
push!(LOAD_PATH, "../src")
using Test
import MPI, CUDA, AMDGPU
using ImplicitGlobalGrid; GG = ImplicitGlobalGrid
import MPI
import ImplicitGlobalGrid: @require
macro coords(i) :(GG.global_grid().coords[$i]) end

Expand Down
6 changes: 2 additions & 4 deletions test/test_update_halo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@

push!(LOAD_PATH, "../src")
using Test
import LoopVectorization
import MPI, LoopVectorization
using CUDA, AMDGPU
using ImplicitGlobalGrid; GG = ImplicitGlobalGrid
import MPI
using CUDA
using AMDGPU
import ImplicitGlobalGrid: @require, longnameof

test_cuda = CUDA.functional()
Expand Down

0 comments on commit ead45ca

Please sign in to comment.