🎮
मध्यम·10 min पढ़ने का समय

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.

StageInputOutput
Vertex Shader3D vertices2D clip-space vertices
Rasterization2D trianglesScreen-space pixel fragments
Pixel ShaderPixel fragmentsColoured 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.

नोट: VRAM capacity is a hard limit for gaming and AI. Consumer GPUs top out at 24 GB (RTX 4090).

टैग

GPURay tracingVRAMCUDARendering