Author Topic: Hyperthreading  (Read 8445 times)

Magnum

  • Member
  • *****
  • Posts: 2396
Hyperthreading
« on: August 29, 2018, 11:44:45 AM »
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

  • Member
  • *****
  • Posts: 1381
Re: Hyperthreading
« Reply #1 on: August 29, 2018, 11:48:00 AM »
You can get an idea checking in the bios setup menu if that technology is enabled/disabled...:idea:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10277
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Hyperthreading
« Reply #2 on: August 29, 2018, 12:34:57 PM »
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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Magnum

  • Member
  • *****
  • Posts: 2396
Re: Hyperthreading
« Reply #3 on: August 29, 2018, 01:07:48 PM »
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

  • Guest
Re: Hyperthreading
« Reply #4 on: August 29, 2018, 03:07:31 PM »
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

  • Member
  • *****
  • Posts: 1046
Re: Hyperthreading
« Reply #5 on: August 29, 2018, 08:13:24 PM »

HSE

  • Member
  • *****
  • Posts: 2358
  • AMD 7-32 / i3 10-64
Re: Hyperthreading
« Reply #6 on: August 29, 2018, 11:15:27 PM »
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--

  • Administrator
  • Member
  • ******
  • Posts: 10277
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Hyperthreading
« Reply #7 on: August 30, 2018, 12:32:33 AM »
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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

HSE

  • Member
  • *****
  • Posts: 2358
  • AMD 7-32 / i3 10-64
Re: Hyperthreading
« Reply #8 on: August 30, 2018, 02:25:36 AM »
Oops !! HyperThreading is an Intel's tecnology. (not posible in this 3 core AMD)

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).

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

  • Member
  • *****
  • Posts: 2617
Re: Hyperthreading
« Reply #9 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.
Creative coders use backward thinking techniques as a strategy.

daydreamer

  • Member
  • *****
  • Posts: 2297
  • my kind of REAL10 Blonde
Re: Hyperthreading
« Reply #10 on: August 30, 2018, 06:58:45 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
http://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

  • Member
  • *****
  • Posts: 1381
Re: Hyperthreading
« Reply #11 on: August 30, 2018, 08:14:08 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

  • Member
  • *****
  • Posts: 2617
Re: Hyperthreading
« Reply #12 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:
Creative coders use backward thinking techniques as a strategy.

Raistlin

  • Member
  • ****
  • Posts: 551
Re: Hyperthreading
« Reply #13 on: August 30, 2018, 03:26:38 PM »
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

  • Member
  • *****
  • Posts: 2297
  • my kind of REAL10 Blonde
Re: Hyperthreading
« Reply #14 on: August 30, 2018, 09:49:45 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
http://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