Skip to content

Commit

Permalink
added python/core inputs for example inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny authored and jjwilke committed Oct 16, 2019
1 parent 33597e7 commit 682b664
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 0 deletions.
57 changes: 57 additions & 0 deletions examples/macrels.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import sst
sst.setProgramOption("timebase", "100as")
import sst.macro
from sst.macro import Interconnect

swParams = {
"name" : "logp",
"out_in_latency" : "2us",
}

appParams = {
"allocation" : "first_available",
"indexing" : "block",
"name" : "mpi_ping_all",
"launch_cmd" : "aprun -n 80 -N 2",
}

memParams = {
"name" : "logp",
"latency" : "10ns",
"bandwidth" : "10GB/s",
}

nicParams = {
"name" : "logp",
"injection" : {
"bandwidth" : "2.0GB/s",
"latency" : "1us",
}
}

nodeParams = {
"memory" : memParams,
"nic" : nicParams,
"app1" : appParams,
"name" : "simple",
"proc" : {
"frequency" : "2GHz",
"ncores" : "4",
}
}

topoParams = {
"name" : "dragonfly",
"geometry" : "[4,3]",
"h" : "6",
"concentration" : "4",
}

params = {
"node" : nodeParams,
"switch" : swParams,
"topology" : topoParams,
}

ic = Interconnect(params)
ic.build()
86 changes: 86 additions & 0 deletions examples/pisces.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import sst
sst.setProgramOption("timebase", "100as")
import sst.macro
from sst.macro import Interconnect

swParams = {
"name" : "pisces",
"arbitrator" : "cut_through",
"mtu" : "4096",
"router" : {
"seed" : "42",
"name" : "dragonfly_minimal",
},
"link" : {
"bandwidth" : "1.0GB/s",
"latency" : "100ns",
"credits" : "64KB",
},
"xbar" : {
"bandwidth" : "10GB/s",
},
"logp" : {
"bandwidth" : "1GB/s",
"hop_latency" : "100ns",
"out_in_latency" : "100ns",
}
}

appParams = {
"allocation" : "first_available",
"indexing" : "block",
"name" : "mpi_ping_all",
"launch_cmd" : "aprun -n 80 -N 2",
"start" : "0ms",
"sleep_time" : "1us",
"message_size" : "1KB"
}

memParams = {
"name" : "pisces",
"total_bandwidth" : "10GB/s",
"latency" : "10ns",
"max_single_bandwidth" : "10GB/s",
}

nicParams = {
"name" : "pisces",
"injection" : {
"mtu" : "4096",
"arbitrator" : "cut_through",
"bandwidth" : "1.0GB/s",
"latency" : "50ns",
"credits" : "64KB",
},
"ejection" : {
"latency" : "50ns",
}
}

nodeParams = {
"memory" : memParams,
"nic" : nicParams,
"app1" : appParams,
"name" : "simple",
"proc" : {
"frequency" : "2GHz",
"ncores" : "4",
}
}

topoParams = {
"name" : "dragonfly",
"geometry" : "[4,3]",
"h" : "6",
"inter_group" : "circulant",
"concentration" : "4",
}

params = {
"node" : nodeParams,
"switch" : swParams,
"topology" : topoParams,
}

ic = Interconnect(params)
ic.build()
77 changes: 77 additions & 0 deletions examples/sculpin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import sst
sst.setProgramOption("timebase", "100as")
import sst.macro
from sst.macro import Interconnect

swParams = {
"name" : "sculpin",
"router" : {
"seed" : "42",
"name" : "dragonfly_minimal",
},
"link" : {
"bandwidth" : "1.0GB/s",
"latency" : "100ns",
"credits" : "4KB",
},
"logp" : {
"bandwidth" : "1GB/s",
"hop_latency" : "100ns",
"out_in_latency" : "100ns",
}
}

appParams = {
"allocation" : "first_available",
"indexing" : "block",
"name" : "mpi_ping_all",
"launch_cmd" : "aprun -n 80 -N 2",
"sleep_time" : "1us",
"message_size" : "1KB",
}

memParams = {
"name" : "logp",
"bandwidth" : "10GB/s",
"latency" : "10ns",
}

nicParams = {
"name" : "sculpin",
"injection" : {
"bandwidth" : "1.0GB/s",
"latency" : "50ns",
"mtu" : "1024",
},
"ejection" : {
"latency" : "50ns",
}
}

nodeParams = {
"memory" : memParams,
"nic" : nicParams,
"app1" : appParams,
"name" : "simple",
"proc" : {
"frequency" : "2GHz",
"ncores" : "4",
}
}

topoParams = {
"name" : "dragonfly",
"geometry" : "[4,3]",
"h" : "6",
"inter_group" : "circulant",
"concentration" : "4",
}

params = {
"node" : nodeParams,
"switch" : swParams,
"topology" : topoParams,
}

ic = Interconnect(params)
ic.build()
79 changes: 79 additions & 0 deletions examples/snappr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import sst
sst.setProgramOption("timebase", "100as")
import sst.macro
from sst.macro import Interconnect

swParams = {
"name" : "snappr",
"router" : {
"seed" : "42",
"name" : "dragonfly_minimal",
},
"link" : {
"bandwidth" : "1.0GB/s",
"latency" : "100ns",
"credits" : "8KB",
},
"logp" : {
"bandwidth" : "1GB/s",
"hop_latency" : "100ns",
"out_in_latency" : "100ns",
}
}

appParams = {
"allocation" : "first_available",
"indexing" : "block",
"name" : "mpi_ping_all",
"launch_cmd" : "aprun -n 80 -N 2",
"sleep_time" : "1us",
"message_size" : "2KB",
}

memParams = {
"name" : "snappr",
"channel_bandwidth" : "0.7GB/s",
"num_channels" : "2",
"latency" : "10ns",
}

nicParams = {
"name" : "snappr",
"injection" : {
"bandwidth" : "1.0GB/s",
"latency" : "50ns",
"mtu" : "1024",
"credits" : "12KB",
},
"ejection" : {
"latency" : "50ns",
}
}

nodeParams = {
"memory" : memParams,
"nic" : nicParams,
"app1" : appParams,
"name" : "simple",
"proc" : {
"frequency" : "2GHz",
"ncores" : "4",
}
}

topoParams = {
"name" : "dragonfly",
"geometry" : "[4,3]",
"h" : "6",
"inter_group" : "circulant",
"concentration" : "4",
}

params = {
"node" : nodeParams,
"switch" : swParams,
"topology" : topoParams,
}

ic = Interconnect(params)
ic.build()

0 comments on commit 682b664

Please sign in to comment.