CAO Report
CAO Report
Submitted By
1. INTRODUCTION Pg no.
1.1 Introduction 1
2. LITERATURE SURVEY
2.1 Literature survey on CPU & GPU 5
2.2 Technical Detail 5
3. COMPARATIVE ANALYSIS
3.2 Comparative Analysis 11
4. FUTURE TRENDS
4.2 Future Trends of GPU 15
5. CONCLUSION
5.1 Conclusion 17
1
1. INTRODUCTION
1.1 Graphics Processing Unit: Graphics processing unit, a specialized processor originally
designed to accelerate graphics rendering. GPUs can process many pieces of data
simultaneously, making them useful for machine learning, video editing, and gaming
applications. GPUs may be integrated into the computer’s CPU or offered as a discrete hardware
unit.
GPUs are also known as video cards or graphics cards. In order to display pictures,
videos, and 2D or 3D animations, each device uses a GPU. A GPU performs fast calculations of
arithmetic and frees up the CPU to do different things. A GPU has lots of smaller cores made for
multi-tasking, while a CPU makes use of some cores primarily based on sequential serial
processing. In the world of computing
What does a GPU Do? The graphics processing unit, or GPU, has become one of the most
important types of computing technology, both for personal and business computing. Designed
for parallel processing, the GPU is used in a wide range of applications, including graphics and
video rendering. Although they’re best known for their capabilities in gaming, GPUs are
becoming more popular for use in creative production and artificial intelligence (AI).
GPUs were originally designed to accelerate the rendering of 3D graphics. Over time, they
became more flexible and programmable, enhancing their capabilities. This allowed graphics
programmers to create more interesting visual effects and realistic scenes with advanced lighting
and shadowing techniques. Other developers also began to tap the power of GPUs to
dramatically accelerate additional workloads in high performance computing (HPC), deep
learning, and more.
2
What Are GPUs Used For? Two decades ago, GPUs were used primarily to accelerate real-
time 3D graphics applications, such as games. However, as the 21st century began, computer
scientists realized that GPUs had the potential to solve some of the world’s most difficult
computing problems. This realization gave rise to the general purpose GPU era. Now, graphics
technology is applied more extensively to an increasingly wide set of problems. Today’s GPUs
are more programmable than ever before, affording them the flexibility to accelerate a broad
range of applications that go well beyond traditional graphics rendering.
1. GPUs for Gaming: Video games have become more computationally intensive, with hyper
realistic graphics and vast, complicated in-game worlds. With advanced display technologies,
such as 4K screens and high refresh rates, along with the rise of virtual reality gaming, demands
on graphics processing are growing fast. GPUs are capable of rendering graphics in both 2D and
3D. With better graphics performance, games can be played at higher resolution, at faster frame
rates, or both.
2. GPUs for Video Editing and Content Creation: For years, video editors, graphic designers,
and other creative professionals have struggled with long rendering times that tied up computing
resources and stifled creative flow. Now, the parallel processing offered by GPUs along with
built-in AI capabilities and advanced acceleration makes it faster and easier to render video and
graphics in higher-definition formats. Uniting fluid gaming experiences with the latest in visual
technologies, Intel Arcgraphics for desktops enables captivating content immersion. Intel Arc
graphics cards include built-in machine learning, graphics acceleration, and ray-tracing hardware
with scalable performance options for laptops, desktops, and professional workstations.
3. GPU for Machine Learning: Some of the most exciting applications for GPU technology
involve AI and machine learning. Because GPUs incorporate an extraordinary amount of
computational capability, they can deliver incredible acceleration in workloads that take
advantage of the highly parallel nature of GPUs, such as image recognition. Many of today’s
deep learning technologies rely on GPUs working with CPUs.
3
1. Integrated GPU:The integrated GPU is a computer where this processor is built on a similar
chip as the CPU. Being built along with the CPU simply provides many benefits like being small
in size, energy efficiency, and not expensive as compared to the opposed discrete GPU. These
types of GPUs use the system RAM instead of having their own RAM similar to discrete GPUs.
The benefit of This GPU is that they don’t consume as much power & generate heat as discrete
GPUs but they also cost less to acquire.
2. Discrete GPU: A dedicated graphics card like a discrete GPU is totally separate from the
CPU. The graphics card encapsulates the graphics processor to separately process instructions &
elements from the CPU. This graphic card has its own form of VRAM or video RAM which
provides the discrete GPU fast access to image data. The main drawback of this dedicated
graphics card is; it generates more heat. In a computer, the GPU is frequently the hottest running
device, which needs a strong power supply.
4
2. LITERATURE SURVEY
2.1 Literature survey:
This survey provides an overview and insight on the use of GPU computing for large-scale data
mining, focusing on the advantages and limitations of GPUs for big data on state-of-the-art data
mining algorithms, complementing and updating previous surveys on the status of this research
area. First, it discusses how the GPU architecture is organized and its evolution, the
programming model, and the advantages to match the computational requirements of large-scale
data mining algorithms. Second, it analyzes current trends and research works on the
implementation of different popular families of data mining techniques using GPUs, discussing
specific optimizations and noteworthy results. Third, it reviews particular application areas
where GPUs have significantly assisted to speedup real-world problems requiring fast processing
of large data volumes in data mining. Fourth, it discusses novel research works on the integration
of GPU computing with popular MapReduce frameworks for distributed computing from two
perspectives: (1) implementations of the MapReduce programming model within a GPU and (2)
exploitation of GPUs for computing the jobs in the nodes of a distributed cluster using existing
MapReduce frameworks. Finally, it summarizes current GPU limitations, future architectures
advantages, open challenges, and future directions to pursue in order to keep increasing the
scalability of parallel data mining algorithms to the ever-increasing size of data. GPUs are many-
core architectures highly suitable for massively data parallel general-purpose computation.
The GeForce RTX™ 3060 lets you take on the latest games using the power of Ampere-
NVIDIA's 2nd generation RTX architecture. Get incredible performance with enhanced Ray
Tracing Cores and Tensor Cores, new streaming multiprocessors, and high-speed G6 memory.
Graphics Card Components: While graphics cards are available in different form factors, they
all feature the same core components. We’ve included a complete breakdown of each of the
different components below.
Graphics Card
1. Graphics Processing Unit: A GPU core can have four to 10 threads per core. A GPU is able
to render images more quickly than a CPU because of its parallel-processing architecture, which
allows it to perform multiple calculations at the same time.The graphics processing unit is where
all of the transistors, CUDA cores, and streaming multiprocessors are located. It is responsible
for accelerating the rate at which your gaming PC can render 3D images.
2.Video Memory (VRAM): VRAM's purpose is to ensure the even and smooth execution
of graphics display. It is most important in applications that display complex image textures
or render polygon-based three-dimensional (3D) structures. People commonly use VRAM
for
applications such as video games or 3D graphic design programs.
The video memory, or VRAM, serves as a separate cache for the GPU to store any
crucial information it needs for displaying graphics. Compared to standard RAM, video memory
is embedded closer to the graphics processing unit which results in faster data transfer speeds
with minimal input lag.
3. Voltage Regulator Module (VRM): The VRM is responsible for ensuring that the GPU
receives all of the necessary power at a constant steady voltage. Graphics cards can come with
varying power consumptions. Whilst some GPUs will draw power from the PCIe slot, some will
require an additional connector from the power supply (PSU).
4. PCIe Interface: PCIe slots allow your motherboard to connect with your PC's most critical
components and provide key functionality. They also supply you with numerous customization
and upgrade options when you're ready to venture beyond preloaded features like graphics and
storage. The PCIe interface or slot is how the graphics card is plugged into the motherboard. For
the graphics card, you will typically utilize either the PCIe x 8 or x 16 lane.
5. Cooling: The cooling system serves three important functions. First, it removes excess heat
from the engine; second, it maintains the engine operating temperature where it works most
efficiently; and finally, it brings the engine up to the right operating temperature as quickly as
possible.
All graphics cards will come with an integrated thermal system that will consist of a
heatsink and/or several fans. This thermal system is responsible for drawing away heat from the
core components of the graphics card to ensure it consistently performs at optimum
temperatures.
6. Interconnection interface: The interconnection bus allows you to connect multiple graphics
cards on a single motherboard for enhanced capabilities and scaling . On AMD graphics cards,
this technology is called CrossFireX. Whereas on all NVIDIA GPUs, this is called NVIDIA
NVLink.
7. Video BIOS: A video BIOS or VBIOS is the Basic Input Output System (BIOS) of a graphics
card or the integrated graphics controller in a computer. The VBIOS provides a set of video-
related functions that are used by programs to access the video hardware. The video BIOS
9
serves as a program hub where you can make adjustments to specific settings, such as the clock
frequencies, fan speeds, and voltages.
Video BIOS
8. Output interface: These are built onto the graphics card itself and are how you connect the
GPU to a monitor. On most GPUs, you will have a DisplayPort, DVI and HDMI port. An Output
Interface can define any device that processes output such as a printer, fax, and email. An Output
Interface can be assigned to one or more Output Devices.
3. COMPARATIVE ANALYSIS.
Machine Learning is a field that makes the computer system learn without being explicitly
programmed. It requires a massive amount of data to generate meaningful information and make
decisions. The formal and scientific definition of Machine Learning is ”A computer program is
said to learn from experience E with respect to some class of task T and performance P. If its
performance at tasks in T, as measured by P, improves with experience E.” Deep Learning is a
sub branch of machine learning which tends to use neural networks for data processing and
decision making. The working of artificial neural network models mimics the human brain.
Central Processing Unit (CPU) and Graphical Processing Unit (GPU) are two processing units
that are extensively used to process ML and DL models. GPU is specially designed for parallel
computation while CPU is not used for the same. Pytorch and Tensorflow are two frameworks
that provide an abstraction for complex mathematical calculations in the field of deep learning.
The need for GPUs arises for training the deep learning network when a vast amount of data is
generated. The normal CPUs typically have 4-5 cores and only a limited number of threads can
be handled. While GPUs have thousands of small cores that can handle several computation
threads in parallel as shown in Figure 1. For example, the NVIDIA A6000 has 10752 CUDA
cores. A deep learning system contains millions of calculations to train and infer which needs a
GPU for fast processing.
2. SCOPE: The main motivation behind this research is to find how CPU and GPU operations
happen while training machine learning and deep learning models. The main focus will be on
CPU and GPU time and memory profiling part, but not on the deep learning models. The
1
2
profiling will be generated using a deep learning model using Pytorch [4] profiler and
Tensorboard . Tracing is done at each training step to get the data about time and memory. Later,
the resource utilization is compared between CPU and GPU.
3. BACKGROUND :
Advantages of GPU:
❖ The graphic processing unit is used in video editing, gaming & machine learning
applications.
❖ These are integrated into the CPU of the computer.
❖ These are capable of graphics rendering in both 2D & 3D.
❖ These processors can perform parallel operations.
❖ GPUs have high throughput.
❖ These processors are excellent for parallel processing.
Disadvantages of GPU:
❖ These processors require lots of regularity, data reuse, and data parallelism.
❖ As compared to CPUs. GPUs are very hard to program & tune.
❖ GPUs perform a single task at a massive scale, however, they cannot execute
general-purpose computing tasks.
❖ Individual GPUs processors are at present very expensive as compared to CPUs.
❖ Special large-scale GPUs can cost hundreds to thousands of dollars.
❖ Graphic processing units execute only some kinds of code.
❖ GPUs can perform a single task at a huge scale, however, they cannot perform normal
computing tasks.
1
4
4. FUTURE TRENDS
4.1 Future trends
2. Ray Tracing: Ray tracing is a rendering technique that simulates the way light interacts with
objects in a 3D environment, resulting in more realistic and visually stunning graphics. GPUs are
expected to continue to support and accelerate ray tracing, making it more accessible for gaming
and other graphics-intensive applications.
3. AI Integration: GPUs have become a crucial component for AI and machine learning
applications due to their parallel processing capabilities. Future GPUs are likely to have
enhanced AI-specific features and optimizations to accelerate deep learning tasks and enable
more advanced AI applications.
4. Energy Efficiency: With an increasing focus on energy efficiency and sustainability, GPU
manufacturers are expected to develop more power-efficient GPUs. This can be achieved
through advanced manufacturing processes, architectural optimizations, and better power
management techniques.
5. Hybrid Computing: GPUs are not limited to graphics processing anymore. They are
increasingly used for general-purpose computing tasks. In the future, we can expect GPUs to
become more versatile and integrated into a wider range of applications, including data analytics,
scientific simulations, and more.
6. Connectivity and Memory: Faster and more efficient memory technologies like HBM (High
Bandwidth Memory) and GDDR6 have been introduced. Future GPUs may continue to adopt
these technologies, leading to better memory bandwidth and overall performance. Additionally,
advancements in GPU interconnects, such as NVLink, will enable GPUs to work together
seamlessly in multi-GPU setups.
15
5. CONCLUSION:
In conclusion, several steps of the machine learning process require CPUs and GPUs.
While GPUs are used to train big deep learning models, CPUs are beneficial for data preparation,
feature extraction, and small-scale models. For inference and hyperparameter tweaking, CPUs
and GPUs may both be utilized. Hence both the Processing units have their own need specific
usage, it’s the user who needs to be aware of which can be used when. I hope this article made
you aware of CPU vs GPU and a smart user of these processors.
The GPU is an essential component of every computer system. They display everything
on our screens. They can be either integrated into a CPU, or stored in separate forms as different
GPUs. There are currently two major GPU manufacturers: Nvidia and AMD. Both have
excellent options, and you can choose the best GPU based on your use. You can also use our
factors to help you make an informed decision. Graphics Processing Units (GPUs) continue to be
a dynamic and influential component in the world of computing and technology.