Re: NET framework and hyperthreading/MMX/SSE/....
- From: "Daniel O'Connell [C# MVP]" <onyxkirx@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Apr 2005 03:18:15 -0500
"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?
.
- Follow-Ups:
- Re: NET framework and hyperthreading/MMX/SSE/....
- From: Olaf Baeyens
- Re: NET framework and hyperthreading/MMX/SSE/....
- References:
- NET framework and hyperthreading/MMX/SSE/....
- From: Olaf Baeyens
- Re: NET framework and hyperthreading/MMX/SSE/....
- From: Daniel O'Connell [C# MVP]
- Re: NET framework and hyperthreading/MMX/SSE/....
- From: Olaf Baeyens
- NET framework and hyperthreading/MMX/SSE/....
- Prev by Date: Re: .NET 2.0 Beta 2
- Next by Date: Any ideas on .Net app that uses groupwise 5.5.5 agenda?
- Previous by thread: Re: NET framework and hyperthreading/MMX/SSE/....
- Next by thread: Re: NET framework and hyperthreading/MMX/SSE/....
- Index(es):
Relevant Pages
|