CPU and GPU are processor units. A CPU (Central Processing Unit) is considered as the brain of the computer and consists of ALU (Arithmetic Logic Unit), which stores the information, performs calculations, and CU (Control Unit), which in turn is in charge of instructions and branching. GPUs (Graphical Processing Unit) are typically used to enhance images and process videos on computers due to the high performance on specific tasks. It mainly consists of ALUs. The main difference lies in the architecture and its purpose. A CPU is designed for a wide variety of workloads, and it focuses on a smaller number of cores on individual tasks and on getting things done quickly. A GPU is the powerful sibling created for jobs that require high performance (initially developed to accelerate specific 3D rendering tasks, but it has evolved to become more general-purpose parallel processors, handling a growing range of applications).