hpc的每个单个节点的最大可能核心数等于24,但它们通常都不可用,所以我想在4个节点上运行代码,每个节点有20个核心(而不是24个) 。
使用MPI是否正确?
#!/bin/sh
#
# Replace <ACCOUNT> with your account name before submitting.
#
#SBATCH --account=aaa # The account name for the job.
#SBATCH --job-name=job_name # The job name.
#SBATCH -N 4 # The number of nodes to use
# (note there are 24 cores per node)
#SBATCH --exclusive
#SBATCH --time=23:58:00 # The time the job will take to run.
source activate env_python
mpirun -n 80 python script.py
# End of script
答案 0 :(得分:0)
这可以做你想要的:
-n 80
请求4个节点,每个节点有20个任务,这些节点将映射到80个MPI等级。那时console.error node_modules\vue\dist\vue.runtime.common.js:589
[Vue warn]: Cannot find element: #app
console.error node_modules\vue\dist\vue.runtime.common.js:589
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
(found in <Root>)
不是必需的。