如何编译C#为多处理器机器? (VS 2010中或CSC.EXE) [英] How to compile C# for multiple processor machines? (With VS 2010 or csc.exe)
问题描述
您好!
我搜索过编译器(csc.exe)选项美国/库/ 6s2x2bzy.aspx相对=nofollow> MSDN ,我找到了答案在这里,在#1,约的编制与多个处理器的。但我的问题是关于编制为多个处理器,如下:
I've searched for compiler (csc.exe) options at MSDN and I found an answer here, at Stackoverflow, about compiling with multiple processors. But my problem is about compiling for multiple processors, as follows.
在那里我毕业的大学有11机群(其中有6四核处理器和5个四核双加工机)。它运行在Linux下,但我可以在那里安装MONO。而不是编制的与多个处理器或内核,我想自己编译的为多处理器机器。所以:
The university where I'm graduating has a 11 machine cluster (which has 6 quad-cores and 5 four-core bi-processed machines). It runs under linux, but I can install MONO there. And instead of compiling with multiple processors or cores, I want to compile for multiple processors machine. So:
- 是否有关于如何做到这一点,或在该系统上的CLR应处理的执行在整个核心传播任何特定的细节?
- 如果有办法做到这一点,我怎么能与VS2010或CSC.EXE命令行编译器做呢?
的在此先感谢,我很抱歉,如果这个问题没有任何意义。我真的不知道如何处理多个内核,因为我是一个单纯的物理学家,而不是一个计算机科学家的!)
推荐答案
由于它是一个集群,你必须依靠某种形式的消息传递并行的,没有编译器会自动变换你的代码。至少,一个很好的旧MPI支持: http://osl.iu.edu/research/ mpi.net/
Since it is a cluster, you have to rely on some form of a message-passing parallelism, no compiler will transform your code automatically. At least, a good old MPI is supported: http://osl.iu.edu/research/mpi.net/
这篇关于如何编译C#为多处理器机器? (VS 2010中或CSC.EXE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!