Cluster usage
The following takes the sbatch submission method as an example.
multiprocess command during the calculation , start 100 tasks (processes), then use sbatch to submit the command ( the script is named multiprocess.sh ):
#!/bin/bash
#SBATCH -J multiprocess
#SBATCH -o job.%j.out
#SBATCH -p q_cn
#SBATCH -n 100
module load anaconda3/4.8.2 #module load the required software
srun -n 100 ./multiprocess
After editing the script, you can submit it directly to the computing node to run
sbatch multiprocess.sh
Parameters involved in the example :
-J multiprocess # multithread is the name of the submitted job, custom
-p q_cn #The specified partition for job submission is the q_cn queue;
-o job.% j.out #The output of the script execution will be saved in the job.% j.out file, where %j represents the job number;
-n 1 #Run a task ( process ) on each node
-c 36 #Use 36 cores per process
© 2023 by Personal Life Coach. Proudly created with Wix.com ICP备案号:京ICP备18029179号