Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard2926 committed Apr 15, 2024
1 parent 21fdd06 commit cc46efb
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions scaling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ config = ARGS[8]

# For scaling tests, use 4 modes, training use 25% modes

modesx = 4
modesy = 4
modesz = 4
modest = 8
modesx = 4 # max(dimx÷32, 4)
modesy = 4 # max(dimy÷32, 4)
modesz = 4 # max(dimz÷32, 4)
modest = 4 # max(dimt÷32, 4)

(gpus > 64) && (modesy = modesy * 2)
(gpus > 128) && (modesy = modesy * 2)
(gpus > 256) && (modesy = modesy * 2)

modelConfig = DFNO_3D.ModelConfig(nx=dimx, ny=dimy, nz=dimz, nt=dimt, mx=modesx, my=modesy, mz=modesz, mt=modest, nblocks=nblocks, partition=partition)

Expand Down Expand Up @@ -66,4 +70,13 @@ end

final_dict = @strdict nodes gpus dimx dimy dimz dimt y_time grads_time config

MPI.Finalize()
if rank == 0
mkpath(projectdir("examples", "scaling", "results"))
@tagsave(
projectdir("examples", "scaling", "results", savename(final_dict, "jld2"; digits=6)),
final_dict;
safe=true
)
end

MPI.Finalize()

0 comments on commit cc46efb

Please sign in to comment.