1

我想编写一段 C 代码并将其发送到每个处理器以执行它

这可能使用mathematica吗?

使用网关将 C 与mathematica 或其他任何东西联系起来

谢谢你们 .. :)

4

1 回答 1

1

我认为是这样,但是您需要在 c 代码中将您的功能分布在 CPU 上。默认情况下,Mathematica 无法检测到您的函数是原子的。

你检查过http://reference.wolfram.com/mathematica/tutorial/MathLinkDeveloperGuide-Unix.html吗?

编辑:如果您非常确定要执行此操作,请查看http://reference.wolfram.com/mathematica/ref/ParallelTable.html。它不适用于我的 c++,这就是我不推荐它的原因:-)。

于 2011-07-10T01:29:25.253 回答