How to compile C # for multiple processors? (Since VS 2010 or csc.exe)

Hello!

I searched for compiler options (csc.exe) on MSDN , and I found the answer here in Stackoverflow about compiling with multiple processors . But my problem is compiling for multiple processors, as shown below.

At the university where I graduate, there are 11 machine clusters (which have 6 quad-core processors and 5 quad bi-processed machines). It works under Linux, but I can install MONO there. And instead of compiling from multiple processors or cores, I want to compile a machine for multiple processors. So:

  • Are there any specific details on how to do this, or should the CLR on this system have to process execution in order to distribute it across the kernels?
  • If there is a way to do this, how can I do this using VS2010 or using the csc.exe command-line compiler?

Thanks in advance, and I'm sorry if this question does not make sense. I really don't know how to handle multiple cores, as I am just a physicist, not a computer scientist! :)

+3
source share
5 answers

Since this is a cluster, you must rely on some form of parallelism message passing, no compiler will automatically convert your code. At least a good old MPI is supported: http://osl.iu.edu/research/mpi.net/

+1

-, . -, . .NET 4 ( Mono ), , .

, concurrency - , . , . ( - .)

+11

; .

; , .

# Thread ThreadPool Parallel LINQ TPL.
.

+7

CLR , . , , ..NET Framework , : Thread, Delegate.BeginInvoke/EndInvoke .

+2

, , :

1:

2:

, , , . , ( , "S" ), . , ( ) , , .

( , ), , , , ( , , , ), .

, : , , . , ( ​​), . , PhD, , , , , , , . , , , .

, , , . , , ; System.Threading.ThreadPool , ( ) , .

, . -, ( , - .NET, , , ). ​​

+1

All Articles