You are not logged in.

#1 2008-02-21 13:51:24

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Wine and Hyper-threading

The pentium4 processors have something on them called "hyper-threading", which allows them to behave as if they were a dual-core CPU.  What compiler flag or flags would I use to allow a program to take advantage of hyper-threading?  Or would I have to compile an SMP kernel?

Offline

#2 2008-02-21 14:18:01

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Wine and Hyper-threading

You need an SMP kernel

cat /proc/cpuinfo | grep processor
processor    : 0
processor    : 1

Treated as 2 processors.

Offline

#3 2008-02-21 14:23:06

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Wine and Hyper-threading

Okay, so how do I compile an SMP kernel?  Or is there one available on one of the repositories?

Offline

#4 2008-02-21 14:30:34

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Wine and Hyper-threading

There's a thousand howto's just a googling away wink

Example.

Offline

#5 2008-02-21 14:40:33

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Wine and Hyper-threading

Okay, thanks.

Offline

#6 2008-02-21 15:17:57

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: Wine and Hyper-threading

Arch default kernels are SMP-enabled.

Offline

#7 2008-02-21 15:47:33

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Wine and Hyper-threading

carlocci /proc  $  uname -a
Linux ecchelo 2.6.24-ARCH #1 [b]SMP[/b] PREEMPT Sun Feb 10 15:21:33 UTC 2008 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux

even though you could be writing anything on it, I think we can trust the pkg mantainer smile

Offline

#8 2008-02-21 20:32:51

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Wine and Hyper-threading

lucke wrote:

Arch default kernels are SMP-enabled.

Okay then, I guess that takes me back to my original question: is there a compiler flag that will cause a program to be built to take advantage of multiple processors or hyper-threading?

Offline

#9 2008-02-21 20:40:30

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: Wine and Hyper-threading

Falcata wrote:
lucke wrote:

Arch default kernels are SMP-enabled.

Okay then, I guess that takes me back to my original question: is there a compiler flag that will cause a program to be built to take advantage of multiple processors or hyper-threading?

Again, programs are generally compiled this way, anyway.

You're going to need to be more specific.  Assuming, since you put it in the thread title, that you want wine programs to be SMP-enabled, they already are.  In fact, windows programs that break when you use multiple CPUs under windows will also break when you use them under wine, and you'll need to use something like schedtool to allow wine the use of only one cpu.


Cthulhu For President!

Offline

#10 2008-02-21 20:42:31

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Wine and Hyper-threading

No, the program has to be written to use multiple *threads*.

Offline

#11 2008-02-21 21:02:26

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: Wine and Hyper-threading

brebs wrote:

No, the program has to be written to use multiple *threads*.

He asked if there was a compiler flag.  If there is, it's compiled this way.

EDIT: Besides, threads aren't the only model.  Message passing/Sockets/RPC between processes uses multiple cores/hyperthreaded CPUs quite well.

Last edited by buttons (2008-02-21 21:03:56)


Cthulhu For President!

Offline

Board footer

Powered by FluxBB