-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.jl
57 lines (52 loc) · 1.2 KB
/
main.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using AMDGPU
using Milepost7
using MPI
using Logging
MPI.Init()
if MPI.Comm_rank(MPI.COMM_WORLD) != 0
disable_logging(Info)
disable_logging(Warn)
else
if AMDGPU.has_rocm_gpu()
@show AMDGPU.libhsaruntime_path
@show AMDGPU.use_artifacts
end
end
if !isinteractive()
args = parse_cmd()
profile = args["profile"]
output = args["output"]
case = args["case"]
load = args["load"]
T = args["T"]
K = args["K"]
rhopq = args["rhopq"]
rhova = args["rhova"]
configuration = args["configuration"]
proxal_iter = args["proxal_iter"]
exatron_inner_iter = args["exatron_inner_iter"]
exatron_outer_iter = args["exatron_outer_iter"]
else
# case = "cases/case_ACTIVSg10k.m"
case = "cases/case9.m"
load = "cases/case9"
profile = true
output = true
T = 2
K = 1
rhopq = 3e3
rhova = 3e4
configuration = 4
exatron_inner_iter = 400
exatron_outer_iter = 1
proxal_iter = 2
end
info = milepost7(
case, load, T, K, configuration;
profile=profile,
output=output,
rhopq=rhopq, rhova=rhova,
proxal_iter=proxal_iter,
exatron_inner_iter=exatron_inner_iter,
exatron_outer_iter=exatron_outer_iter
);