Re: NET framework and hyperthreading/MMX/SSE/....




"Olaf Baeyens" <olaf.baeyens@xxxxxxxxxx> wrote in message
news:4254e27b$0$28058$ba620e4c@xxxxxxxxxxxxxxxxx
>> For what its worth, dual core and hyperthreaded processors are supported
> by
>> the OS, so you just have to do the threading yourself. I assume waht you
>> want is compiler support for parralellizing loops? Something like OpenMP?
>>
> This is true, but it would be nice if older none-multi theaded programs
> would also speeded up using these hyperthreading features. :-) If OpenMP
> is
> implemented in the .NET CLR 2.x.

Ya it would be nice, wouldn't it, ;). I'm just not sure that the JIT has
enough contextual information to determine what can safely be calculated in
parallel. OpenMP uses a number of pragmas to determine what the compiler
does, forcing the developer to explicitly define much(all?) of it. Could the
JIT safely do that work without that developer provided information?

Coincidentally, I was looking at parallelization as a possible extension to
C# a few weeks ago, using OpenMP as a bit of a model. I was playing with
syntax similar to:

parallel for (private int i = 0; i < 1000; i++)
{
list[i] = GetFactorsOf(i);
}

parallel is actually a block and could be written parallel { for ...}.
Private within the parallell block would define that variable as private to
the individual thread and so on.

It is just a work in progress amongst my piles of C# ideas, but I figured
the coincidence reason enough to mention it. Thoughts?



.



Relevant Pages

  • Re: NET framework and hyperthreading/MMX/SSE/....
    ... dual core and hyperthreaded processors are supported ... > want is compiler support for parralellizing loops? ... Something like OpenMP? ...
    (microsoft.public.dotnet.framework)
  • Re: Lets use gcc-4.2, not 4.1 -- OpenMP
    ... I have a core 2 duo box so I'm interested, ... or Visual Studio on Windows) have supported OpenMP pragmas ... Scott may well be right suspecting that _this support_ may be of beta-quality ... that's another plus -- GCC folks already refuse to do anything about ...
    (freebsd-current)
  • Is OpenMP programming portable ?
    ... I have an application and would like to add multithreading support. ... few things are going the pthread ways but with SUN Studio 11 i ... I learned that MSVC 2005 has OpenMP 2.0 support, ... I'm just after a compiler that works for MacOSX, Linux and the BSD's. ...
    (comp.unix.solaris)
  • Re: Multi-core computers development...
    ... they may not have to reinvent the wheel. ... offer support for MPI, OpenMP, etc.? ...
    (borland.public.delphi.non-technical)
  • Re: Is OpenMP supported in VC++ Express?
    ... but I'm having problems with OpenMP. ... The annoying thing is that the compiler for VC++ 2003 DID support it ... Find another feature to play with? ...
    (microsoft.public.vc.language)