setting cpu core affinity for gpu client?

Here you can find out about our Folding Team! Our goal: to understand protein folding, protein aggregation, and related diseases
Post Reply
User avatar
XstollieX
Staff Writer
Staff Writer
Posts: 1641
Joined: Mon Mar 24, 2008 10:51 am
Contact:

setting cpu core affinity for gpu client?

Post by XstollieX »

How do I maintain core affinity for the gpu2 client? Every time that I start a new wu it goes back to core 1. Tried googling this issue but to no avail.
vbironchef
Legit Extremist
Legit Extremist
Posts: 2301
Joined: Tue Mar 27, 2007 3:35 pm

Re: setting cpu core affinity for gpu client?

Post by vbironchef »

Not sure you saw my other post on your question. http://distributed.org.ua/forum/index.p ... topic=1149 is what I use.
User avatar
XstollieX
Staff Writer
Staff Writer
Posts: 1641
Joined: Mon Mar 24, 2008 10:51 am
Contact:

Re: setting cpu core affinity for gpu client?

Post by XstollieX »

Isn't that for the smp client? I will be running dual gpu clients
User avatar
DaIceMan
Legit Extremist
Legit Extremist
Posts: 1599
Joined: Tue Jul 18, 2006 10:31 pm
Location: Springfield-ish, Missouri

Re: setting cpu core affinity for gpu client?

Post by DaIceMan »

Hey bro... not sure what you're doing, but keep it up. Nice to see a new name in the Top 3 on the daily list. I'll be giving up the top spot this week while I RMA a mobo, but will be back for my seat with a vengeance when it returns.
Gamer - Thermaltake Element S | PC Power & Cooling Silencer 750 Black | Gigabyte GA-EP45-DS3L | Intel E8400 | Arctic Cooling Freezer 7 Pro | 4GB OCZ Reaper Ram | XFX 8800GTX | Creative X-Fi XtremeGamer | Seagate 7200.10 320GB

HTPC / Folder - Palit 9600GT 1GB Sonic | AMD Phenom 9600 | Corsair DHX 4GB | ECS GF8200A | OCZ StealthXStream 500
Thanks to Palit, AMD, Corsair and ECS for sponsoring the 2008 Folding Give-away!

Image
User avatar
XstollieX
Staff Writer
Staff Writer
Posts: 1641
Joined: Mon Mar 24, 2008 10:51 am
Contact:

Re: setting cpu core affinity for gpu client?

Post by XstollieX »

I set up my main rig to run 2 9800gtx's on the gpu2 client and my other rig is running 1 gpu client on my 9600gt xxx. Haven't had much time to set up the smp on my quad core. that should add about 1500 or so ppd. If I can get a few more bucks I'm gonna grab another 9800 or a 9600 and mobo to run sli on my quad core.
User avatar
geokilla
Moderator
Moderator
Posts: 1048
Joined: Thu Mar 15, 2007 9:46 am
Location: Toronto, Canada

Re: setting cpu core affinity for gpu client?

Post by geokilla »

This thread will help. http://forums.anandtech.com/messageview ... id=2226790
I found (at least part of) the answer.

Any time you run a GPU cient alongside one of the CPU clients (GPU or uniprocessor) you can set a wndows system environment variable to force the GPU to use any available core instead of the one that it is assigned by default.

Right-click 'my computer' and select 'properties'
click the 'advanced' tab and you will see two windows for managing windows environment variables.
Use the system window and click on the 'create new' button
enter the name of the variable: NV_FAH_CPU_AFFINITY
enter the value you want for the variable:
0= use all cores
1= use core 0
2= use core 1
3= use core 0 + 1
4= use core 2
5= use core 2 + 0
6= use core 2 + 1
7= use core 2 + 1 + 0
8= use core 3
9= use core 3 + 0
10= use core 3 + 1
11= use core 3 + 2 + 0
12= use core 3 + 2
13= use core 3 + 2 + 0
14= use core 3 + 2 + 1
15= use core 3 + 2 + 1 + 0

I just put in 0 so all cores will always be available.

So far, I know on an Opty (X2) the GPU client and the CLI client both fold at rates very similar to what they would do if operating by themselves.

Also, on my Quads, I did this. They run two GPUs and one SMP. All three of those clients also fold at rates very siimilar to what they would do on their own.

I hope this helps!

-Sid

(edit: don't forget to re-start the clients for this change to take affect.)
Intel Core i5-3570K @ 4.2Ghz @ 1.16V (CPU-Z + LinX)
Gigabyte Z77X-UD5H F14 BIOS
ASUS GTX 460 768MB @ 800/1950
Kingston HyperX DDR3 8GB @ DDR-1333
Corsair AX750
Crucial M4 128GB
Western Digital Black 1TB
Cooler Master Hyper 212+ EVO
BenQ E2420HD
---------------------
I AM CANADIAN!
User avatar
XstollieX
Staff Writer
Staff Writer
Posts: 1641
Joined: Mon Mar 24, 2008 10:51 am
Contact:

Re: setting cpu core affinity for gpu client?

Post by XstollieX »

that seems to have done the job!
thank Geo
Post Reply