在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1103|回复: 0

[求助] 有没有人能解释一下lsf里slot、task、core、host等概念

[复制链接]
发表于 2023-2-8 14:37:33 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
lsf的文档上的描述:




  1. The following job asks for six slots and runs within single host. Each slot maps to one core. LSF tries to pack six cores as close as possible on single NUMA or socket. If the task distribution cannot be satisfied, the job can not be started.

  2. bsub -n 6 –R "span[hosts=1] affinity[core(1):distribute=pack]" myjob


复制代码
看起来-n代表slots。但是查询bsub -n参数的解释:




  1. bsub -n min_tasks[,max_tasks]
  2. Description
  3. The number of tasks is used to allocate a number of slots for the job. Usually, the number of slots assigned to a job will equal the number of tasks specified. For example, one task will be allocated with one slot. (Some slots/processors may be on the same multiprocessor host).

  4. You can specify a minimum and maximum number of tasks. For example, this job requests a minimum of 4, but can launch up to 6 tasks:

  5. bsub -n 4,6 a.out

  6. The job can start if at least the minimum number of slots/processors is available for the minimum number of tasks specified. If you do not specify a maximum number of tasks, the number you specify represents the exact number of tasks to launch.


复制代码
“Some slots/processor”这里的描述看起来slots和processor的概念一致,那processor和core的区别是啥?我的理解是processor就是指的core。
还有-n指定task数量也有疑问。我的理解是bsub一条命令是1个task,怎么还会有指定task数量的操作?如果指的是提交的命令使用到的进程或者核心数量,那么应该通过“affinity[core(1):distribute=pack]”里的core数量配置就行,为什么还要-n?





您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-9-23 15:27 , Processed in 0.014092 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表