#!/bin/bash # #!约定符号,#!/bin/bash用bash shell 解释器来执行
#SBATCH -J jobname # job name, optional
#SBATCH -p partitionname # partition name
#SBATCH -N 1 # number of computing node
#SBATCH --ntasks=1 # maximum number of parallel tasks (processes)
#SBATCH --gres=gpu:1 # number of gpus allocated on each node
#SBATCH -c 8 #number of CPU
#SBATCH -t 105:00 # maximum running time in hh:mm:ss format, optional
exec 1>file.out #输出重定向
python test.py