1 Star 0 Fork 0

张璇/DeepRL

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker_batch.sh 634 Bytes
一键复制 编辑 原始数据 按行查看 历史
Shangtong Zhang 提交于 2020-07-18 15:07 . Benchmark
#!/usr/bin/env bash
GPUs=(0 1 2 3 4 5 6 7)
#for i in $(seq 0 7); do
# for j in $(seq 0 0); do
# nohup bash docker_python.sh ${GPUs[$i]} "template_jobs.py --i $i --j $j" >| job_${i}_${j}.out &
# done
#done
rm -f jobs.txt
touch jobs.txt
for i in $(seq 0 100); do
echo "$i" >> jobs.txt
done
cat jobs.txt | xargs -n 1 -P 40 sh -c 'bash docker_python.sh 0 "template_jobs.py --i $0"'
rm -f jobs.txt
#rm -f jobs.txt
#touch jobs.txt
#for i in $(seq 0 6); do
# echo "$i ${GPUs[$(($i % 8))]}" >> jobs.txt
#done
#cat jobs.txt | xargs -n 2 -P 40 sh -c 'bash docker_python.sh $1 "template_jobs.py --i $0"'
#rm -f jobs.txt
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuan-zhang0509/DeepRL.git
git@gitee.com:xuan-zhang0509/DeepRL.git
xuan-zhang0509
DeepRL
DeepRL
master

搜索帮助