Creating and customizing n heterogeneous clusters (or workers)

未关闭
#389 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
r

调研方向

未指定任何文件、测试或入口点。该 issue 询问是否可以在并行循环中创建和使用异构 worker 组,因此需要先确定相关的实现入口点,然后才能定义完成标准。

由索引模型根据 Issue 内容生成。

描述

pkg/parallelly

Hello,
I am new to "future" terminology so please forgive me, I may be confusing when I use process/core/thread/workers etc...
Basically, I am interested in parallel processing on a single multi-core CPU.
Like to know if it is possible to create, let say, n clusters but each with a different number of threads/cores.
For example, create 4 clusters in parallel in this way:

cl1 with 8 cores
cl2 with 5 cores
cl3 with 4 cores
cl4 with 7 cores

Can "cl" be vector or list, like cl[i] or cl[[i]]?
The number of cores/threads will be in an array/list/vector. So I will need to give
it to the process/worker creation as a parameter or set the related option for it.

I would be nice to run them in a parallel loop like foreach .. %dopar% {}

So a total of 24 cores in parallel will work but grouped for 4 different tasks.
Do you know a way to do it?
Please examples.

Thanks...

主要语言
R
星标
1k
派生
93
平均合并
2 天 4 小时
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

futureverse/future 的其他 Issue

查看 futureverse/future 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。