News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Hyperthreading

Started by Magnum, August 29, 2018, 11:44:45 AM

Previous topic - Next topic

Magnum

Is there a way to know if my cpu is  actually using hyperthreading?

My cpu has the ht flag set. It has 4 cores.

Thanks.

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

felipe

You can get an idea checking in the bios setup menu if that technology is enabled/disabled...:idea:

hutch--

Andy,

Identify your processor then go to the Intel site to get all of the specs. If its a "core" series, you only have the cores, not the hyper threading.

Magnum

I have an AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G.

I will check their site.

Simultaneous Multi-Threading is AMDs version.

I don't think my chip has it.

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

aw27

The best True Masm (TM) approach is to use the cpuid instruction. Details left as an exercise.
Hint: HT bit -> Number of Logical Cores -> Number of Physical Cores

LiaoMi


HSE

Raistlin "ExtremeID System Profiler" (or Hardware Enumerator [pre-release]) show that. In AMD A6-3500 I have "1 thread/core". I think that is not HyperThreading  :eusa_naughty:.
Equations in Assembly: SmplMath

hutch--

Hector, it must be a historical device if its a single core processor. There are some crude tests by creating 2 threads. On a multi-core machine two threads will be faster than two threads on a single core processor by about 80%. I still have a 3.8 gig PIV that I keep for my scanner and microscope that runs XP but I think it was a hyperthreaded processor.

HSE

Oops !! HyperThreading is an Intel's tecnology. (not posible in this 3 core AMD)

Quote from: hutch-- on August 30, 2018, 12:32:33 AM
There are some crude tests by creating 2 threads.
Yes, I have somewhere the test you make some time ago (not here, obviously it could be in 64bit machine).

Quote from: hutch-- on August 30, 2018, 12:32:33 AM
I still have a 3.8 gig PIV that I keep for my scanner and microscope that runs XP but I think it was a hyperthreaded processor.
Yes it's.

I also have an Intel 2 Core, but not HyperThreading in it.


Equations in Assembly: SmplMath

Siekmanski

As far as I know AMD Ryzen and Threadripper supports simultaneous multithreading (SMT).
Hyper-threading is Intel's proprietary SMT implementation.

The new AMD Threadripper 2990 WX has 32 cores and 64 threads.
Creative coders use backward thinking techniques as a strategy.

daydreamer

Quote from: Siekmanski on August 30, 2018, 02:40:13 AM
As far as I know AMD Ryzen and Threadripper supports simultaneous multithreading (SMT).
Hyper-threading is Intel's proprietary SMT implementation.

The new AMD Threadripper 2990 WX has 32 cores and 64 threads.
if someone has suggestions todo with all these threads or to start with just do something useful with 2 cores,plz let me know
otherwise I will end up using only 100%/64 performance when I get a threadripper
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

felipe

Quote from: daydreamer on August 30, 2018, 06:58:45 AM
Quote from: Siekmanski on August 30, 2018, 02:40:13 AM
As far as I know AMD Ryzen and Threadripper supports simultaneous multithreading (SMT).
Hyper-threading is Intel's proprietary SMT implementation.

The new AMD Threadripper 2990 WX has 32 cores and 64 threads.
if someone has suggestions todo with all these threads...

Probably for servers?  :idea:

Siekmanski

There are many algorithms that could benefit from multithreading when latency is a big issue.
For example:
- Digital Audio Workstations with 64 audio tracks with realtime effects per track mixed to one stereo track.
- Large FFT IFFTs.
- Moving large memory blocks.
- Rendering of complicated 3D scenes in software.

Now I only have to convince my wife that I need 32 cores......  :biggrin:
Creative coders use backward thinking techniques as a strategy.

Raistlin

AMD CPU detects do use the CPUID - HT/CMPLegacy flags as part of the core/thread detection algorithm.
As such my little app (still in its infancy) correctly reports such. Sorry if this is confusing to some - it's not meant as Intel HT.   

From the AMD manuals :
HTT: hyper-threading technology. Indicates either that there is more than one thread per core or more than one core per processor.
CPUID Fn0000_0001_EBX[LogicalProcessorCount]
CPUID Fn0000_0001_EDX[HTT] (Hyper-Threading Technology)
CPUID Fn8000_0001_ECX[CmpLegacy]
CPUID Fn8000_0008_ECX[NC] (number of cores - 1)
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

daydreamer

Quote from: Siekmanski on August 30, 2018, 02:52:53 PM
There are many algorithms that could benefit from multithreading when latency is a big issue.
For example:
- Digital Audio Workstations with 64 audio tracks with realtime effects per track mixed to one stereo track.
- Large FFT IFFTs.
- Moving large memory blocks.
- Rendering of complicated 3D scenes in software.

Now I only have to convince my wife that I need 32 cores......  :biggrin:
*run number crunching programs in background*
-"wifey,we have to get a faster computer,look here its extremely slow,I can't even do simple things as surf web,its extremely slow and hangs and crashes alot" :P :badgrin:

64 windows simultanously running 64 different assembly demos!!! :P :lol:
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding