Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions internal/script/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,10 @@ func GetParameterizedScriptByName(name string, params map[string]string) ScriptD

// mlc benchmark script constants (buffer setup snippets passed into mlcBenchmarkScript)
const (
// for measuring memory bandwidth and latency (2x of per-core L3 share, minimum 100 MB)
// for measuring memory bandwidth and latency (2x of L3 cache size)
Comment thread
adgubrud marked this conversation as resolved.
Outdated
mlcBufferSetupMemory = `L3_KB=$(cache_size_kb L3)
CORES_PER_SOCKET=$(lscpu | grep -E 'Core\(s\) per socket:' | head -1 | awk '{print $4}')
[ $CORES_PER_SOCKET -lt 1 ] && CORES_PER_SOCKET=1
BUF_KB=$(( L3_KB * 2 / CORES_PER_SOCKET ))
MIN_KB=102400
[ $BUF_KB -lt $MIN_KB ] && BUF_KB=$MIN_KB`
BUF_KB=$(( L3_KB * 2 ))
[ $BUF_KB -lt 1 ] && BUF_KB=1`
// for measuring L1 bandwidth and latency (half of L1d cache size minus 4KB)
mlcBufferSetupL1 = `L1D_KB=$(cache_size_kb L1d)
BUF_KB=$(( L1D_KB / 2 - 4 ))
Expand Down