[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Modern GPUs

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 23
Thread images: 1

So right now a GPU is
>larger, more power consuming and expensive than a CPU
>capable of running 16, 32, and 64 bit operations several times faster than the CPU does it.
>more technologically advanced
>utilized better memory at higher speeds

Why is it a secondary subservient device to the CPU?
Why arent we running our OS and software on our GPUs instead?
>>
Eh
>>
Because all those assumptions are bullshit. A gpu is something completely different from a cpu and built for completely differeng workloads
>>
Because it's more expensive and doesn't have the same registers as a CPU does?
>>
>>60797403
Because GPUs have thousands of weak cores and CPUs have a few strong cores, different use cases.
>>
>>60797403
No one has built an OS that runs directly from the gpu. The gpu also doesn't have all the bits that a cpu requires.
>>
>>60797403
https://superuser.com/questions/308771/why-are-we-still-using-cpus-instead-of-gpus

>TL;DR answer: GPUs have far more processor cores than CPUs, but because each GPU core runs significantly slower than a CPU core and do not have the features needed for modern operating systems, they are not appropriate for performing most of the processing in everyday computing. They are most suited to compute-intensive operations such as video processing and physics simulations.
>>
>>60797403
>>larger, more power consuming and expensive than a CPU
An inherently serial device won't see as much gains from parallelism than an inherently parallel device
>>capable of running 16, 32, and 64 bit operations several times faster than the CPU does it.
Not necessarily.
>>more technologically advanced
No.
>>utilized better memory at higher speeds
What does that even mean.

tl;dr: you're an fuckeding retarded. Go learn how a computer works.
>>
>>60797403
GPU is not a subservient device OP. GPU is a full blown computer with its own OS, interacting with your PC.
>>
The GPU can be so powerful because it can focus on number crunching instead of handling interrupts, communicating with devices, and dealing with branchy control flow needed for operating systems
GPU memory is high latency and high bandwidth which would be terrible for an OS. CPU memory is low latency which is really important when switching context every few milliseconds and dealing with multiple cores running independently
GPUs use SIMD multithreading instead of MIMD multithreading which limits its flexibility a lot
>>
I love how you all jerk your dicks over OS celebs like Stallman all day long but don't question the fact that none of them are good enough to write a parallelizable OS that runs on GPU hardware.

The reason software hasn't changed in 2 decades is because programmers are too lazy to do parallel programming. Serial is shit and we need to get past it.
>>
>>60797714
>typical /g/ user
>>
>>60797467
total handwaving non-answer
>>
There are computers that do that - that is how the Raspberry Pi is architected, because it's an ARM core (or several ARM cores) glued onto the VC4, which is a vector processor plus several shader cores plus several vertex accelerators plus several fixed function blocks (plus like a million registers on the mailbox bus from hell); the VPU boots first, that typically bootstraps the realtime OS ThreadX which runs to service GPU calls send from the ARM's OS, which boots afterwards.

GPUs, too, typically have an embedded CPU core dedicated to handle the scheduling, and that does indeed run a specialised OS (the ones I've seen run ARM).

The architecture of the shader part of GPUs is dedicated to running a huge number of thread clusters without a lot of branches. They are very deeply pipelined with basically no branch prediction logic. Running general purpose code on them would be pretty slow compared to a CPU. The memory mapping doesn't work the same way, either, but all that's hidden from you when using a GPU because the compiler hides some of the nastier bits of the hardware from you, even to the point of taking your own function and quietly replacing it with a completely different function that does almost the same job (at least partly because due to the quick and extremely competitive pace of development of especially the two main GPU vendors, a surprising amount of shit just plain doesn't work). This is one reason GPU drivers are often closed-source.

Highly parallelised monolithic tasks with bulk computational requirements, not a lot of inter-task communication and essentially no branches run very well indeed - HPC things like crypto computations (including, yes, cryptocoin mining, at least where the functions are not currently beaten by specialised ASICs), some simulations, that kind of thing. Some neural net code is a good fit, too. Most of nVIDIA's money now comes from supercomputing.
>>
>>60797403
I'm not answering your retarded question.
>>
>>60797403
A cpu is like 4 normal adults and a gpu is like 100 retards.

An AMD cpu is like 4 adults with slight retardation
>>
>>60797403
Because you're making the assumption a GPU is more advanced than a CPU. In what terms?

A CPU core is orders of magnitude more complex and advanced than a GPU core. There's a gazillion of subsections on a CPU not present on a GPU, not to mention a CPU core runs much faster than a GPU core.

A GPU is appropriate for heavily parallelized simple workloads like 3D rendering because while a common CPU has 4 or 8 cores, a GPU has much much more and can pull ahead. Unfortunately you can't run low-threaded applications on a GPU efficiently because each core is too slow and also lacks all the CPU features.
>>
>>60797714
>all tasks can be easily parallelized if we all wish for it really strong
>multi-threading has no overhead

I thought /g/ knew better.
>>
>>60798661
You mean 8 adults.
>>
>>60798977
Many tasks can be parallelized but often they require heavy synchronization which destroys the performance
Another approach is instead of running a hard-to-paralellize-task on 4 cores, run 4 hard-to-paralellize-task each on it's own core. I believe this could be applied more than it is today but it requires extra infrastructure and developers are lazy.
>>
The GPU is like a huge truck that requires a driver to be used which is the CPU.
>>
To oversimplify:

A CPU is like a thin, high pressure jet of water.
A GPU is like a low pressure big pipe.

If some things have to happen before others, it doesn't bother the CPU since everything is in order (serial). The GPU has to wait because things are happening slowly but at the same time (parallel), so it ends up being much slower.
>>
>>60797403
Because GPUs are made for 1 job
Thread posts: 23
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.