GPU आर्किटेक्चर की मूल बातें
शेडर प्रोसेसर, VRAM, रास्टराइज़ेशन, रे ट्रेसिंग और AI एक्सेलेरेशन।
A GPU (Graphics Processing Unit) contains thousands of small parallel processors optimised for floating-point math and data-parallel tasks. Originally designed for 3D games, modern GPUs are general-purpose accelerators running neural networks, scientific simulations and video encoding.
Parallel Architecture: Why GPUs Are Different
A CPU has a few powerful cores with large caches optimised for single-threaded latency. A GPU has thousands of simpler cores (CUDA cores on NVIDIA) grouped into Streaming Multiprocessors. These cores execute the same instruction on many data items simultaneously (SIMT).
- ▸RTX 4090: 16,384 CUDA cores in 128 Streaming Multiprocessors.
- ▸GPU clock speeds (1.5–3.0 GHz) are much lower than CPUs, but thousands of cores compensate.
- ▸GPU memory bandwidth (GDDR6X RTX 4090: 1 TB/s) far exceeds CPU-RAM bandwidth.
The Rendering Pipeline
Traditional rasterization rendering works in stages: Vertex shaders transform 3D geometry into 2D screen coordinates, rasterization converts triangle edges into pixel fragments, fragment shaders calculate the final colour of each pixel.
| Stage | Input | Output |
|---|---|---|
| Vertex Shader | 3D vertices | 2D clip-space vertices |
| Rasterization | 2D triangles | Screen-space pixel fragments |
| Pixel Shader | Pixel fragments | Coloured pixels |
Ray Tracing and RT Cores
Ray tracing simulates light physically: rays are cast from the camera through each pixel, bounced around the scene and evaluated for colour. NVIDIA RTX and AMD RDNA2+ GPUs include dedicated RT Cores that accelerate this test in hardware.
- ▸BVH (Bounding Volume Hierarchy) is a tree structure grouping triangles so the GPU can quickly narrow down which triangles a ray might hit.
- ▸Full path tracing uses RT for all lighting — extremely demanding, requires DLSS or FSR.
Tensor Cores and AI Acceleration
Neural network inference involves huge matrix multiplications. Tensor Cores are fixed-function units that perform matrix multiply-accumulate operations far faster than general-purpose shader cores. NVIDIA RTX 4090 has 512 fourth-gen Tensor Cores.