Seti@Home optimized science apps and information
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
11 Oct 2008, 10:14:07 am

Login with username, password and session length
 
If you've registered already but never got your activation email, please click here.
 
 
Seti@Home optimized science apps and information  |  Optimized Seti@Home apps  |  Windows  |  Topic: CPU affinity should be set on test executables 0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: CPU affinity should be set on test executables  (Read 1569 times)
BenHer
Code Wizard
Knight Templar
*****
Offline Offline

Posts: 395


View Profile
CPU affinity should be set on test executables
« on: 07 Aug 2006, 01:39:42 pm »

Simon,

For testing I believe you've got to set the affinity of the executable to CPU #0.

I was running your test platform (the batch files, not the installer) and checked my CPU activity for this Athlon 64 X2 3800+ cpu, and both cores were working on parts of the program.  This, sometimes, doesn't allow the data in one of the core's caches to be used as the other core then takes over when control returns to the app.

I then downloaded a MS utility to set the cpu affiniity for an executable and changed all of the .exes to be CPU #0 only.  For testing this is ok, but not for the release version.

Note: BOINC does this when running the executables, by starting child tasks and setting the CPU affinity before begining worker.


Side note: I noticed the mention of the "cheating" on Intel's part in another thread...checking for "GenuineIntel" and the option to patch executable to overcome this.   Well intel has gotten more clever lately and their CPU checking in 4 places in your executables (each of the 4 uses different code).   I just patched them to be "AuthenticAMD" and all executables are running on this AMD cpu; even the ones that failed on your table...heheh.   Can't be certain any of the SSE2 or SSE3 code is being called but the executables run.
« Last Edit: 07 Aug 2006, 01:47:16 pm by BenHer » Logged
Simon
Ni!
Lord o' the Board
Knight who says 'Ni!'
*****
Offline Offline

Posts: 1053



View Profile WWW
Re: CPU affinity should be set on test executables
« Reply #1 on: 07 Aug 2006, 03:02:32 pm »

Benher,

check the thread "ICCPatch, anyone?" in the "Pre-Release Applications" section (test-group access only). Wink

Regards,
Simon.
Logged
BenHer
Code Wizard
Knight Templar
*****
Offline Offline

Posts: 395


View Profile
Re: CPU affinity should be set on test executables
« Reply #2 on: 07 Aug 2006, 05:51:03 pm »

Benher,

check the thread "ICCPatch, anyone?" in the "Pre-Release Applications" section (test-group access only). Wink

Good thread...but about that affinity?
Logged
Simon
Ni!
Lord o' the Board
Knight who says 'Ni!'
*****
Offline Offline

Posts: 1053



View Profile WWW
Re: CPU affinity should be set on test executables
« Reply #3 on: 07 Aug 2006, 06:39:51 pm »

Good idea on setting CPU affinity, actually. Should be incorporated into the test/bench scripts.

Regards,
Simon.
Logged
Simon
Ni!
Lord o' the Board
Knight who says 'Ni!'
*****
Offline Offline

Posts: 1053



View Profile WWW
Re: CPU affinity should be set on test executables
« Reply #4 on: 13 Aug 2006, 06:34:07 pm »

Er,

checked out what it actually does (I thought it would set cpu affinity on the fly, not set it permanently), and future test packs will probably contain executables with affinity set to cpu #1.

Regards,
Simon.
Logged
Pages: [1] Go Up Print 
Seti@Home optimized science apps and information  |  Optimized Seti@Home apps  |  Windows  |  Topic: CPU affinity should be set on test executables « previous next »
Jump to:  


Quote!
Nothing is as easy as it looks.
- Murphy's Law

 
Site Statistics
Total Members:1,046
Total Posts:9,938
Total Topics:440
Downloads
Apps
Windows R-1.x25,105
Windows R-2.020,320
Windows R-2.236,511
Linux 32bit 1.x6,551
Linux 32bit 2.24,349
Linux 64bit 2.21,750
Alpha/IA64193
FreeBSD606
HPUX334
Subtotal:94,586
Source packs:4,121
Tool/WU packs:7,788
Total:154,026
GBs dl'd:280.44
Pages served
Today:1,409
Total:3,213,667
(since 6/26/2006)
173 Donations to S@H
U.S. Dollars:3,196.59
Euros:863.90
Last 24h:$ 0.00
Avg./24h:$ 7.09
Estim. total:$ 4,319.66
Latest Member:
Leaps-from-Shadows
 
 
Seti@Home optimized science apps and information | Powered by Enigma 2.0 (RC1).
© 2003-2008, LSP Dev Team. All Rights Reserved.
Seti@Home optimized science apps and information Forums | Powered by SMF.
© 2005, Simple Machines LLC. All Rights Reserved.
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!