<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Desaisaipranav on Medium]]></title>
        <description><![CDATA[Stories by Desaisaipranav on Medium]]></description>
        <link>https://medium.com/@desaisaipranav?source=rss-dd651f6ffea7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*o_fhx-RJ20A7KMXi</url>
            <title>Stories by Desaisaipranav on Medium</title>
            <link>https://medium.com/@desaisaipranav?source=rss-dd651f6ffea7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:25:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@desaisaipranav/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The High Stakes of GPU Reliability and Security: What You Need to Know]]></title>
            <link>https://medium.com/@desaisaipranav/the-high-stakes-of-gpu-reliability-and-security-what-you-need-to-know-6ff779a3bdd3?source=rss-dd651f6ffea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ff779a3bdd3</guid>
            <dc:creator><![CDATA[Desaisaipranav]]></dc:creator>
            <pubDate>Sat, 08 Apr 2023 18:29:23 GMT</pubDate>
            <atom:updated>2023-04-08T18:29:23.025Z</atom:updated>
            <content:encoded><![CDATA[<p>8–4–2023 , Desai Sai Pranav.</p><blockquote>“GPUs are facing scalability challenges, their reliability and security are critical and need more attention” says Adwait Jog, an associate professor in the University of Virginia.</blockquote><p>A university close to many landscapes likes mountains in Shenandoah Valley and Virginia Beach, he proudly boasts about the university also being academically and research culturally highly active reflecting in the rankings. It is ranked 28 by US News and a number 4 public university in the USA. He has collaborated with his students to form Insight computer architechture group which received sponsorship from big companies like Google , Nvidia , NSF etc .</p><h3>What is special about a GPU:</h3><p>GPUs employ abundant data level parallelisms and task-level parallelism. So, to run these all these sorts of workloads, GPUs have been extremely powerful. They provide high throughput and high energy efficiency. It is good for large data handling and finds usage in DL/AI/ML/cloud computing.</p><p>Due to these extensive applications, a portion of processor shared to GPU and the number of cores has been increasing throughout the years. The production of GPUs is estimated to rise 10 times in the next 0 years compared to CPUs merely 2 times.</p><h3>In life everything doesn’t go as planned!</h3><blockquote>Of course, GPUs aren’t all god-made perfect things. They too have cons like any other machine.</blockquote><p>There is a physical limit to the size of a GPU. (The limit of 858 mm² of maximum die size which refers to the size of the individual chips that make up a larger integrated circuit) So you cannot actually keep on making the GPUs bigger to address our problems. So, if our workload increases, we might have to increase the number of GPUs.</p><p>As the number of GPUs used for a computation increases, the scalability of the computation improves, allowing for faster computation times and the ability to process larger datasets. However, as the number of GPUs used increases, the accuracy may suffer due to factors such as increased communication overhead and approximate computing or the low precision computing. The benefit of running computation at lower precision is we can actually do the same amount of same work in less operations and do more work. Hence there is a tradeoff between scalability and accuracy.</p><p>Another challenge his group faced was from security and reliability. GPUs can be vulnerable to side-channel attacks, which exploit unintended information leaks to extract secret information from a system such as cryptographic keys or other sensitive data. Other malware, virtualization attacks are possible which need to be addressed.</p><h3>Background on GPU architecture:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*IqAwbv7AccSVKA0nsmlcxQ.png" /><figcaption>The contrasting properties of a CPU and a GPU.</figcaption></figure><p>Here are the differences between CPUs and GPUs. One is designed to optimize throughput whereas the other one is to optimize latency.</p><p>Latency focusses of the CPU essentializes the existence of caches which help us to access recently peeped into memory locations fast. This latency optimization is not the primary goal of a GPU architect because it works on multi threads and hence when some threads slow down due to latency issues, the other threads can come in and they can execute their instructions and can take advantage. In this way, a GPU can actually hide the latency of the slower threads. But that doesn&#39;t rule out the need for caches in GPUs. The GPU as a whole also have a shared cache or a cache hierarchy that allows multiple processing units to access the same cache as it is essentially a multi core system. Prefetching is also a process that helps reduce the latency, but it affects one of the main goals of a GPU that is throughput / bandwidth. Storing unnecessary data may hurt the bandwidth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*RkzVy8Ba-nsw48_rPtgJrw.png" /><figcaption>A closer look into the architecture of a GPU</figcaption></figure><p>Here MSHR is also present similar to a CPU, but it is called a coalescing unit, where it tries to coalesce your number of requests going to the memory. as it reduces multiple requests of access to memory by different threads by eliminating redundancy and improving bandwidth.</p><h3>SOS, security alert!!</h3><p>The above MSHR is a loophole an attacker might exploit to find out security keys our processor is employing, by sending ciphertexts and analyzing the time taken to process them to guess our precious keys . Putting an end to the coalescing facility might seem as a solution but it drastically reduces the performance of our GPU. Hence there is another trade off here.</p><p>Solution is randomizing the coalescing part such that number of coalesced Accesses is not proportional to the execution time. This reduces variance of the execution time and makes it tough for the attacker to decode as we try to send the constant number of requests to the memory.</p><p>It is clear that we are padding some requests to lower the variance in which case the bandwidth starts getting affected. Here we face another trade off where more buckets implies less performance and less buckets imply more . We come up with a solution to that which is BCoal which generates less DRAM Traffic and has optimal number of coalesced accesses also secure with MSHRs and caches.</p><h3>Thank you</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ff779a3bdd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configurability is the key]]></title>
            <link>https://medium.com/@desaisaipranav/configurability-is-the-key-fe992e07ff31?source=rss-dd651f6ffea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe992e07ff31</guid>
            <dc:creator><![CDATA[Desaisaipranav]]></dc:creator>
            <pubDate>Mon, 20 Mar 2023 18:29:13 GMT</pubDate>
            <atom:updated>2023-03-20T18:29:13.663Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In the age of growing technology , world moving towards automation , AI and ML , not only the software requires steadfast progress, but also hardware does, as finally however better and less complex we design our algorithms and programs , it ends up running on some processor .The processor along with the ISA decides the final output speed as the ISA acts as an interface between the hardware and the software .This blog is an insight into one of ISA and Fabs lead by Neel Gala , an IITM doctorate , on his talk on 3rd March in IIT Bombay.</blockquote><h4>Genesis of the first Fab in India and inclusion of RISC-V in it:</h4><p>After building a 6 stage pipeline processor under project<strong> ANURAG</strong> ,Neel desired to acquire advance ISA for his future endeavors , as the ISA used in <strong>ANURAG </strong>were 2 decades old . After some unsuccessful ventures to obtain ISA from several companies , he got hands into the<strong> OPEN POWER</strong>, open source documentation of IBM but the disentangling wasn’t feasible .</p><p>He then peeped into RISC-V set , was much efficient and started . A fresh team <strong>SHAKTI</strong> started working on this , wanting address multiple domains like embedded systems , industrial processors , IOT.</p><blockquote>The world talks to the periphery not the cores .</blockquote><p>In 2018 <strong><em>InCore</em></strong> was registered as the first Indian fab to commercialize manufacturing , the incentive being to recover the lag of our country in bringing best size of transistor compared to other countries. After successful collaboration with ISRO , IGCAR , Thales , RIV , Neel stands as an estimable man in the field of micro-architecture . Here is what he had to say about as architects , what do we strive for .</p><h4>As architects what do we strive for: Customized cores</h4><blockquote>Domain specific computing is the crux of what architects strive for and that means every transistor used in the processor is justified</blockquote><p>For example a superfast intel i9 kind of chip might not be necessary in a smart phone .This leads us into customized cores with configurability being the key .</p><p><strong>InCore</strong> adopted an agile dev methodology to produce custom solutions with significantly reduced costs and time.</p><p><strong>Bluespec </strong>reduces turnaround time, increases parameterization and enable faster releases compared to verilog which is outdated. <strong>Verilator</strong> is fastest open source simulator that is performance competitive with proprietary simulators .Python is used for Generators. as the primary language to build scalable and automated Core and SoC generators .Python used for verification by <strong>InCore</strong> adopting a novel and an agile methodology for functional and structural verification.</p><p>RISC-V anchors this new era — Its openness, architecture flexibility and ecosystem diversity in terms of IP offerings/services</p><h4><strong>Evolution of a configurable core:</strong></h4><p>One of the step taken to decrease the stalling in a general 5-stage pipeline processor is adding the ALU to the M stage to decrease stalling in a multiple stage running program.</p><p>Another major change made was predicting control flow instructions at the fetch stage of instruction itself to make the flow robust .</p><p>Duplicating 2 cores to 1 and further builds up the speed when multiple programs are being run . A 4 linked pipelines can execute 5 instructions at one step .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe992e07ff31" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>