← 返回技术雷达
Hacker News tech

What happens when a GPU writes memory

Hacker News 热议:What happens when a GPU writes memory(24 赞 / 0 评论,来源 blog.doubleword.ai)

一句话概要

Following an STG.E SASS instruction through the hardware units in an RTX 4090.

原文开头节选

In our previous post we followed one LDG.E down through all the hardware units on an RTX 4090 — through its L1, translation, through the crossbar to its L2 slice, and thence to DRAM. The request retrieved its result, and then came back up through its waystations, returning its result to its warp, which then continued to execute its part in the kernel.

The part it was playing was in a kernel that performed a vector add. The same kernel, once it has loaded elements of both vectors, adds them together, and then stores the result.

/00c0/ IMAD.WIDE R6 , R6 , R7 , c [0x0][0x170] ; // &c[i] /00d0/ FADD R9 , R4 , R3 ; // a[i] + b[i] /00e0/ STG.E [R6.64] , R9 ; // c[i] = … /00f0/ EXIT ; STG.E is the instruction that’s responsible for writing the calculated sum back to global memory. In this post we’re going to follow STG.E through the same waystations, figuring out what happens at each step. As before, this information is not all publicly available; where it isn’t, we’ll run new experiments.

(以上为原文节选,完整内容见下方”原文来源”)

这条动态今日登上 Hacker News 首页(24 赞 / 0 评论,来源 blog.doubleword.ai)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。

原文来源: Hacker News

相关服务