r/AskComputerScience • u/tugrul_ddr • Aug 24 '25
Why Does Nvidia Call Each CUDA Pipeline Like a "Core"?
In 7000-9000 series AMD Ryzen CPUs, each core has 48 pipelines (32 fma, 16 add). Even in older Intel CPUs, there are 32 pipelines per core.
But Nvidia markets the gpus as 10k - 20k cores.
CUDA cores:
- don't have branch prediction
- have only 1 FP pipeline
- can't run a different function than other "core"s in same block (that is running on same SM unit)
- any
__syncthreadscommand, warp shuffle, warp voting command directly uses other "core"s in same block (and even other SM units in case of cluster-launch of a kernel with newest architectures) - in older architectures of CUDA, the "core"s couldn't even run diverging branches independently
Tensor cores:
- not fully programmable
- requires CUDA cores to be used in CUDA
RT cores:
- no API given for CUDA kernels
Warp:
- 32 pipelines
- shuffle commands make these look like an AVX-1024 compared to other x86 tech
- but due to lack of branch prediction, presence of only 1 shared L1 cache between pipelines, its still doesn't look like "multiple-cores"
- can still run different parts of same function (warp-specialization) but its still dependent to other warps to complete a task within a block
SM (streaming multiprocessor)
- 128 pipelines
- dedicated L1 cache
- can run different functions than other SM units (different kernels, even different processes using them)
Only SM looks like a core. A mainstream gaming gpu has 40-50 SMs, they are 40-50 cores but these cores are much stronger like this:
- AVX-4096
- 16-way hyperthreading --> offloads instruction-level parallelism to thread-level parallelism
- Indexable L1 cache (shared-mem) --> avoids caching hit/miss latency
- 255 registers (compared to only 32 of AVX512) so you can sort 250-element array without touching cache
- Constant cache --> register-like speed for linear access to 64k element array
- Texture cache --> high throughput for accesses with spatial-locality
- independent function execution (except when cluster-launch is used)
- even in same kernel function, each block can be given its own code-path with block-specialization (such as 1 block using tensor cores and 7 blocks using cuda cores, all for matrix multiplications)
so its a much bigger and far stronger core than what AMD/Intel has. And its still more cores (170) for high-end gaming GPUs than high-end gaming CPUs (24-32). Even mainstream gaming GPUs have more cores (40-50) than mainstream gaming CPUs (8-12).
20
u/Doctor_Perceptron Ph.D CS, CS Pro (20+) Aug 24 '25
In my cynical opinion, it's a marketing term to make the GPU sound more impressive. There's no good mapping from what we think of as a CPU core to something equivalent in the GPU, so Nvidia goes with whatever has the highest magnitude.
7
u/ghjm MSCS, CS Pro (20+) Aug 24 '25
"Core" in this context referred to a unit that could be programmed on an FPGA. The original "cores" were DSP cores. Eventually FPGAs got big enough to hold a whole CPU and you got "CPU cores" (so named to distinguish them from all the other kinds of cores). The original single-chip multiprocessors, like the IBM Power series int what server space and Athlon X2 in the consumer space, did not use the term "core." I think it was Intel marketing that first started using "core" to mean a logical CPU on a fabricated multiprocessor die. By this time it was already possible to program a simple GPU onto an FPGA, so you already had CPU cores and GPU cores (and DSP cores and Ethernet MAC cores and PCI controller cores and so on) before anyone ever started applying the term "cores" to fabricated CPUs.
Calling a GPU execution unit a "core" is therefore at least as historically valid as calling a CPU execution unit a "core." It just means it's a discrete bundle of gates that can be included as part of a chip design.
4
u/Stormfrosty Aug 24 '25
If it has a program counter then it’s a core.
4
u/high_throughput Aug 24 '25
You're assuming that if a CPU calls its processing units "cores", then a GPU's processing units must be equivalent to a CPU's in order to also be called "cores"?
4
u/Drugbird Aug 24 '25
It's honestly a bit difficult to even define what a core is (both on CPU and GPU), as CPUs have a lot of SIMD processing built in.
4
u/victotronics Aug 24 '25
Marketing speak. I've come across so many people claiming "An intel processor has only 20 cores, but a GPU has 10 thousand".
2
u/custard130 Aug 24 '25
there is no universal definition for what a "core" is even just within cpus, nvm trying to compare cpu cores to gpu cores
you dont even have to go that far back for things like the controversy around AMD bulldozer core counts
and even with todays CPUs you get logical cores vs physical cores, performance cores vs efficiency cores
and depending on workload you may get different levels of actual performance from that
GPU "cores" individually are much less capable than CPU cores, but that is kinda the point, a GPU is designed for performing a very specific highly parallelizable task, which basically boils down to floating point matrix multiplication.
a 4k monitor has ~ 8 million pixels, each one will independently have its colour calculated many times per second, it kinda makes sense that you would spread that task over thousands of "cores"