#!/bin/bash
# Copyright (C) 2020 Anonymous Authors of ICLR-2021 Submission #471
# USE THE CODE FOR ACADEMIC PURPOSE ONLY.

set -x
unset $TMUX
C="CUDA_VISIBLE_DEVICES"
SH="bash"
SC="bin/nes"
export NES_NPOP=50
export NES_XLR=2.0
export NES_XSIGMA=0.25
export NES_MOM=0.0

tmux new-session -s "nesparam" "gpustat -i1"\; split-window "htop"\;\
	new-window -n "NES_NPOP=100  " "${C}=3 NES_NPOP=100   ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_NPOP=50   " "${C}=3 NES_NPOP=50    ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_NPOP=40   " "${C}=3 NES_NPOP=40    ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_NPOP=20   " "${C}=2 NES_NPOP=20    ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_XLR=1.0   " "${C}=2 NES_XLR=1.0    ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_XLR=2.0   " "${C}=2 NES_XLR=2.0    ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_XLR=3.0   " "${C}=1 NES_XLR=3.0    ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_XLR=4.0   " "${C}=1 NES_XLR=4.0    ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_XSIGMA=3  " "${C}=1 NES_XSIGMA=3   ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_XSIGMA=2  " "${C}=0 NES_XSIGMA=2   ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_XSIGMA=1  " "${C}=0 NES_XSIGMA=1   ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "NES_XSIGMA=0.5" "${C}=0 NES_XSIGMA=0.5 ${SH} ${SC} 5 -1 4 ; sh"\;\
	detach
