473,324 Members | 2,166 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,324 software developers and data experts.

dual opteron prog. help

Hi!

Can anyone please show me an example how to write a very simple C
program such that it runs on a specific processor?

I want to run a very simple program, 2 programs identical, and one runs
one one processor and the other program (same one) runs on a different
processor.

How do I specify which processor in the code to force the program to
run on a specific processor.

ex: would be if I ran the 2 programs on the same processor, it should
run slower but if ran on separate processors (I have a dual opteron
244) the programs should run at their normal speed. I know they won't
increase in speed but I want to specify in code how to choose a
processor.

I have Fedora Core 3 at the moment.

I would be most grateful for any help!

Oct 13 '06 #1
2 1366

ki*************@yahoo.com wrote:
Hi!

Can anyone please show me an example how to write a very simple C
program such that it runs on a specific processor?

I want to run a very simple program, 2 programs identical, and one runs
one one processor and the other program (same one) runs on a different
processor.

How do I specify which processor in the code to force the program to
run on a specific processor.

ex: would be if I ran the 2 programs on the same processor, it should
run slower but if ran on separate processors (I have a dual opteron
244) the programs should run at their normal speed. I know they won't
increase in speed but I want to specify in code how to choose a
processor.
Not a comp.lang.c subject but look at sched_setaffinity().

Tom

Oct 13 '06 #2
ki*************@yahoo.com wrote:
Can anyone please show me an example how to write a very simple C
program such that it runs on a specific processor?
Probably off-topic here. See if Googling "processor affinity" yields
anything helpful, or consult your system documentation.

I suspect anything you find will be extremely platform specific,
requiring platform specific, non-Standard APIs in whatever language you
choose.
Oct 13 '06 #3

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

Similar topics

9
by: Tomer Ben-David | last post by:
Hi I have a big j2ee appliction that was so forth run on a single cpu machine. I have tested it on a dual cpu machine, its running much slower (about X3 times slower). I know that...
0
by: Plymouth Acclaim | last post by:
Hi guys, We have a problem with Dual AMD64 Opteron/MySQL 4.0.18/Mandrake 10 for a very high volume site. We are evaluating the performance on our new server AMD64 and it seems it's slow compared...
5
by: John Dalberg | last post by:
I am planning to build a server to be used as a SQL Server and web server. Right now I can only use a single box for both. I have read some threads were dual processors are having problems with...
3
by: ashokrathi | last post by:
I am trying to compile SQL procedures on Linux running on AMD/Opteron 64-bit machine. I have 'gcc', 'cc' and 'g++' compilers on my machine. I have set DB2_SQLROUTINE_COMPILE_COMMAND with various...
25
by: John Gibson | last post by:
Hi, all. I need to upgrade my dual Xeon PostgreSQL engine. Assuming similar memory and disk sub-systems, I am considering a Quad Xeon system vs. a Dual Itanium for PostgreSQL. I believe that...
2
by: bruce_brodinsky | last post by:
Don't know whether to post this on a hardware or software board, so here goes: I wrote a c# chess program which searches for checkmate. Now, it's single-threaded. But I was thinking. I just got...
4
by: LLessieux | last post by:
Hi, I have been seeing a strange behaviour when doing some tests on a Dual - Dual Core Opteron system using Windows XP (32bits with SP2). In out application we have a wrapper around the thread...
4
by: Signeg | last post by:
Hey guys, I have some work for university and i never used C++ in my life so i'm kinda lost.. But i've still managed to write something woth it. But too bad for me the prog does compile and lunch...
0
by: CodeSpanker | last post by:
I have a class library that is COM visible as it is instantiated via webpage. V1 of this class library is live and has been installed on client machines so that when they navigate to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.