Click to See Complete Forum and Search --> : detect Hyperthreading


buccaneer
February 4th, 2005, 03:06 AM
Hello,

I´m programming an Installer which installs different Versions of a 3rd party Software:
- older Versions don´t run properly when Hyperthreading is enabled
- newer Versiosn do run properly.

Until now, the user has to read the manual to know this, has to know if Hyperthreading is enabled on his machine and has to choose the correct Software-Version manually.

In my Installer-class i wish to detect if Hyperthreading is enabled and disable the option to install the SW-Versions which are not compatible accordingly.

I´ve been searching for a way to get this info about Hyperhtreading, but have not found anything - Any suggestions to resolve my Problem?

Thank you for your help!

Christian

jkrishna
November 12th, 2007, 01:08 AM
Hi,

You can make use of the code available at http://softwarecommunity.intel.com/Wiki/Processorfeaturedetection/63.htm, compile the code to an ".exe" & by reading the output of this exe file , we can find whether it is HT enabled or not.

You can copy the code from the url starting from:
"Note : if the reader wishes to create a cpp file by copying the source listing below, please ensure only plain ascii text are being pasted into a standard ascii file."

Regards
Jayakrishna.K