473,323 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Optimizing C# programs for Multi-Processors/ DualCore

Hello,

is there a way to optimize loops (f.e. matrix operations) for multi
processor systems with C#?

I´m searching for something like OpenMP, which is available for C/C++
but not for C#.

Or isn´t there any way to optimize it with C#?

Do I have to outsource my matrix operation into a C/C++ DLL using OpenMP?
Regards,

Martin
Oct 4 '06 #1
3 1977
Martin Pöpping wrote:
is there a way to optimize loops (f.e. matrix operations) for multi
processor systems with C#?
In theory, this should be handled by the JITer (so that one assembly
could take advantage of the multiple processors when run on a system
that had them, while still running on a single processor PC)

In reality, I have no idea if such a JITer exists (but I doubt it).

Oct 4 '06 #2
><ja**********@gmail.comwrote in message
>news:11**********************@c28g2000cwb.googleg roups.com...
Martin Pöpping wrote:
>is there a way to optimize loops (f.e. matrix operations) for multi
processor systems with C#?
>In theory, this should be handled by the JITer (so that one assembly
could take advantage of the multiple processors when run on a system
that had them, while still running on a single processor PC)
>In reality, I have no idea if such a JITer exists (but I doubt it).
Not in .NET. There's no automatic vectorzation of loops and no support for
OpenMP, which would let you write parallel loops directly.

-cd
Oct 4 '06 #3
"Martin Pöpping" <ma******@despammed.comwrote in message
news:eg**********@newsreader2.netcologne.de...
Hello,

is there a way to optimize loops (f.e. matrix operations) for multi
processor systems with C#?

I´m searching for something like OpenMP, which is available for C/C++ but
not for C#.

Or isn´t there any way to optimize it with C#?

Do I have to outsource my matrix operation into a C/C++ DLL using OpenMP?
That would be a viable route. Personally, I'd probably try that route
before the alternative: writing it yourself for .NET.

-cd
Oct 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: JustSomeGuy | last post by:
I have a routine that evaluates a polynomial equation that have 3 variables x,y,z of orders 1,2,3 the coefficients of the polynomial are in an array. This routine is quite slow and I'd like to...
9
by: Tzu-Chien Chiu | last post by:
Hi, "What methods do you ever use to optimize the programs?" We're developing a graphics chip emulator in C++, but it's very slow for big scenes. Even though this is a cross-platform software,...
3
by: PWalker | last post by:
Hi, I have written code that I would like to optimize. I need to push it to the limit interms of speed as the accuracy of results are proportional to runtime. First off, would anyone know any...
11
by: G Patel | last post by:
Can anways explain why many multi-file programs I've seen don't have a main.c file, instead main() is hidden in a file with a different name? Is this just a preference, or is there an unspoken rule...
2
by: Brian | last post by:
In particular, this question goes out to the Microsoft C++ development team. Back in June, Ronald Laeremans posted the following message. Has the optimizing compiler been included with the...
5
by: bobwansink | last post by:
Hi, I'm relatively new to programming and I would like to create a C++ multi user program. It's for a project for school. This means I will have to write a paper about the theory too. Does anyone...
24
by: Richard G. Riley | last post by:
Without resorting to asm chunks I'm working on a few small routines which manipulate bitmasks. I'm looking for any guidance on writing C in a manner which tilts the compilers hand in, if possible,...
6
by: peter_k | last post by:
Hi, Last time i'm interested in optimizing small c programs. On my studies we are sending the programs using the web interface to online judge. The person who will wrote the faster program get...
8
by: kvt | last post by:
Hi, One of my friend puzzled me to write a program which destructs itself. i.e, by the time it stops execution, its executable file should be deleted. I tried a lot like a) using " system()...
2
by: Andrea Taverna | last post by:
Hello everyone, I wrote a bunch of recursive functions to operate on multi-dimensional matrices. The matrices are allocated dynamically in a non-contiguous way, i.e. as an array of pointers...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.