HotCarbon 2023

Carbon-Efficient Design Optimization for Computing Systems

Mariam Elgamal (Harvard University); Doug Carmean, Elnaz Ansari, Okay Zed, Ramesh Peri, Srilatha Manne, Udit Gupta (Meta); Gu-Yeon Wei (Harvard University); David Brooks (Harvard University/Meta); Gage Hills (Harvard University); Carole-Jean Wu (Meta)

This transcript was made by AI. The open source speech recognition model Whisper (large-v3-turbo) transcribed the recording with faster-whisper. Names and technical terms were checked against the paper, but it can still contain mistakes. The recording is the reference.

0:00 Okay, thanks, everyone. So I'm Mariam, and I'm going to present our work on carbon-efficient design optimization for computing systems. So as we've seen from today's talk, the carbon footprint of ICT is on the rise, and it's expected to reach around 8% by 2030. There are many sources of ICT emissions. These include the fabrication facilities, the equipment suppliers, material procurement, the design process itself, and also how we dispose of these systems. And consumer electronics alone account for 37% of ICT carbon footprint in 2020. And if you break down the carbon footprint of consumer devices, a study in 2020 found that the embodied carbon footprint accounts for around 75% of this carbon footprint. Therefore, optimizing only for energy efficiency is not sufficient since it does not account for embodied carbon or the carbon intensity of use.

0:56 So what is the role of designers? Designers have many design choices, including which process technology you know to use, which architecture, whether to design a custom chip or use an off-shelf design, and how to trade off performance and carbon footprint. But there are multiple challenges to that. First, there aren't that many carbon-aware design tools that allow us to optimize and trade off total lifecycle carbon, which is operational and embodied carbon, versus conventional metrics such as power, performance, and area. There is also another major challenge, which has to do with quantifying carbon, and the imperfections that have to do with the quantification process itself, whether across the supply chain of the semiconductor industry, and also due to fluctuations in the energy sources, whether depending on the accessibility of renewables versus non-renewables.

1:43 And even when we start looking at carbon-aware optimization, we still need to identify which parameters we need to target in order to reach carbon-efficient computing systems. So today, I'm going to present a framework where we optimize for carbon efficiency across multiple layers of the computing stack. And we trade off total lifecycle carbon versus performance. We also present robust design techniques that allow us to still enable carbon-aware design optimization, even when quantifying carbon is challenging. We also present guidelines to improve carbon efficiency, and we cover hardware provisioning and 3D integration. And this is quantified by total carbon delay product, which I will discuss later in this talk. So this is our vision for carbon-aware optimization framework. And today, I'll show you how we develop specific parts of this framework.

2:32 First, we have a carbon model, which allows us to account for both operational and embodied carbon. And second, we developed a carbon-aware optimization framework, carbon-aware optimization, which allows us to trade off total carbon versus conventional design metrics. And today, I'll focus on enabling carbon-aware optimization across architectures, integration techniques, and applications. And I'll be happy to talk about the other parts offline as well. So our goal is to enable carbon-efficient optimization for computing systems generally. But today, I'll focus on examining specifically for VR and XR applications. So we look at production-level VR and XR applications, including gaming, social gaming, media, browser, and virtual desktop. And you can also target other applications as well in our framework. And for the metric for carbon efficiency, we optimize for total carbon delay product, which is TCDP.

3:28 And that is the sum of operational carbon and embodied carbon. I know not a lot of people are agreeing with this today. Multiplied by delay, which is the application execution time. And to draw a parallel to that, for energy efficiency, when we think about energy delay product, the resource is energy, and we're optimizing for performance. But for carbon efficiency, the resource is the total carbon of the product, and then we're also trying to optimize for performance or delay, as we call it here. You can also target other metrics that were proposed in previous works, such as ACT, using our framework. So to quantify total carbon, we leverage ACT to quantify the embodied carbon of integrated circuits. And we also look into operational energy, which we then compute into operational carbon.

4:14 And to do that, we use a meta-architecture simulator for AI and XR accelerator, which basically takes in a neural network in PyTorch and outputs the latency and energy. And we also look at Meta Quest 2 headsets. And then we use our framework to compute the total carbon for these different cases, as I'll show next. So let's get into the carbon aware optimization. First, we formulate the design optimization to minimize the sum of operational and embodied carbon, all multiplied by delay. And this is subject to area, quality of service, and power constraints defined by the designer. And here I'm showing an example for our VR headset SOC. Now, we need to compute delay energy operational carbon and embodied carbon to be able to quantify TCDP and do carbon-efficient design.

5:04 So here is a summary of the framework computations that we have, where we compute delay energy depending on the application-dependent workloads. And the embodied carbon formulation here allows us to start also looking into hardware provisioning. And you can find more details in the paper. But I would also like to highlight operational energy versus operational carbon. One of the biggest issues with operational carbon or carbon in general is that we might not know some parts of it during design. So for designers, the carbon intensity of use might not be known during the design time due to fluctuations throughout the day or fluctuations in terms of the accessibility of renewables versus non-renewables. And I'll show you later in this talk how we can still optimize for carbon efficiency and do carbon-aware optimization, even when we do not know CI use at the design phase.

5:52 So now let's look into some results. First, we look into hardware provisioning for VR tasks running on Meta Quest 2 CPUs. Based on our thread-level parallelism experiments, we find that out of an eight-core CPU, there are around three unused cores on average. And so by reducing the number of cores from eight to four, we realize that there are carbon efficiency potential improvements. So for example, for the MediaOne task, going from eight to four cores, there's a 1.25x benefit in carbon efficiency. However, if we look at browser and social gaming tasks here, we find that the optimal TCDP design are seven-core and six-core configurations. And this is primarily because of the FPS degradation or the frame rate degradation with a smaller number, of cores, and also the FPS requirements.

6:41 We have higher FPS requirements. And so designers need to carefully optimize for hardware provisioning when they are doing carbon-efficient design. We also look into three-dimensional stacking, where we analyze separately fabricated dice that are stacked on top of each other for compute and memory using hybrid bumps and through silicon vias, as we show here in this example. So this improves power, performance, and also the bandwidth between the processor and memory. It is also useful for XR systems due to the stringent form factors that they have. So here are six different configurations of 3D-stacked XR accelerators that we looked at, where the multiply-accumulate arrays are the compute units and the SRAM activation memories are stacked on top. So first, we look into a case where operational carbon dominates use, where basically when you're using, for example, when you're using the hardware for a long operational lifetime, and we look at the total carbon versus the delay for each of these designs.

7:43 And here are the contour lines. Any designs that lie on the same contour line have the same TCDP. So for an operational carbon-dominant case, we find that 3D-stacking, 2K MACs, and 8 megabytes of SRAM gives a 6.9x TCDP benefit over the baseline. And we also look at an embodied carbon-dominant case. For example, when you're using the hardware for a much shorter operational lifetime, we find that the carbon-efficiency benefits are lower for stacking 2K MACs and 4 megabytes of SRAM. And we find here 1.08x TCDP benefit. However, all of these results, we're assuming that we can quantify carbon accurately at the design time, and we can get operational carbon, embodied carbon, and therefore total carbon. But we have figured out that there's this major challenge in terms of when we do not know total carbon at the design time.

8:37 For example, as I mentioned before, when carbon intensity is not known due to the fluctuations that happen. And so we need robust design techniques that allow us to still do carbon-aware optimization, even when we cannot quantify carbon as accurately as we should be. So let's recall the TCDP objective function or the total carbon delay product function. That is operational plus embodied multiplied by delay. And if we look at operational carbon, this is pretty much the carbon intensity of use multiplied by the energy over the lifetime of the system that we're analyzing. And if we just start rearranging these equations and let this delay into this bracket, the equation will start looking like this. And we are guaranteed that the carbon intensity of use and the energy of a system both are positive.

9:22 And so how can we solve this problem when we do not know the carbon intensity of use? One way to do it is to use regularization techniques such as beta, where we can sweep beta from zero to infinity to account for all the possible values of the carbon intensity of use over time. So let me show you that graphically. First, we try to minimize for energy delay that is represented here on the y-axis and embodied carbon multiplied by delay on the x-axis. And the bottom left corner is the preferred corner for carbon-efficient design. So by changing the slope of beta, designers can sweep the designs that can minimize both the energy delay and the embodied carbon delay. And we start with an embodied carbon dominant case here.

10:08 And as beta changes, the operational carbon has more weight. Eventually, a different design becomes optimal until we reach the point where operational carbon dominates. Now, we've shown that by using this technique, we can get the set of Pareto optimal designs. And by getting the set of Pareto optimal designs, in the paper, we mathematically show that all the designs that are on the Pareto optimal are TCDP optimal as well, but could be TCDP optimal. But any design that does not belong to the Pareto optimal set cannot be TCDP optimal at all. Therefore, designers can eliminate all designs that are outside the Pareto optimal set. And this is incredibly important because we can still enable carbon-aware design, even when we do not know parts to be able to quantify total carbon as an embodied carbon plus operational carbon.

10:59 So today, we presented a framework that allows us to optimize for carbon efficiency across multiple layers of the stack. And we have presented design techniques that still also allow us to do carbon-aware optimization, regardless of the difficulty of quantifying carbon accurately. We've presented guidelines to improve carbon efficiency in terms of hardware provisioning, 3D integration. We've also identified operational lifetime as a parameter, which you can read more about in the paper. And we hope that this work enables the community to adopt carbon-aware design more readily in the future. Thank you.

11:52 Nice piece of work. I'm curious, since a bunch of the co-authors actually work inside a corporation that actually promulgates these products, if you can discuss how to trade off the notion of lifetime of these products with performance capability that's engineered into the hardware. I think if I got it right, you held lifetime constant, I think, as part of your analysis. So when I did operational, we have cases where we do operational carbon-dominant and embodied carbon-dominant. And for that, we've changed the lifetime of the hardware. So we would arbitrarily do that, depending on whether we're looking at AI, then we're changing the number of inferences. And then depending on if we're doing an application, then it depends on number of hours of use per year. So you're saying that the performance achieved affects the projected lifetime in your optimization.

12:46 Is that right? No. So we haven't looked at that in terms of looking at how the performance impacts. But we've seen how changing the lifetime impacts which carbon-efficient design, which design is more carbon-efficient, just because of the trade-off between operational and embodied carbon. Yeah, but we haven't looked at necessarily performance degradation, because here the performance degradation was based off of the hardware provisioning case. Okay. I think that would be super interesting if you could look into that. Thanks. Thanks. Thanks.