cuTile BASICcuTile BASIC
cuTile BASIC 是 CUDA Tile 编程模型 在 BASIC 编程语言 中的一种实现。
BASIC 是 “Beginner's All-purpose Symbolic Instruction Code”(初学者通用符号指令代码)的缩写。BASIC 是一种设计于 20 世纪 60 年代的编程语言,旨在提供易用性和交互式编程体验。它曾在早期的微型计算机程序员(如威廉·盖茨三世,即比尔·盖茨)中风靡一时。
cuTile BASIC 是 作为一个 愚人节玩笑 发布的。尽管它只是个玩具级的项目,但它确实是该编程模型的一个真实实现,并展示了该模型的通用性。 您可以使用这个 Modal Notebook 在 B200 GPU 上运行下方展示的 cuTile BASIC vector-addition 核函数。cuTile BASIC 的部分开发工作正是通过此类 Notebook 完成的。
10 REM Vector Add: C = A + B
20 INPUT N, A(), B()
30 DIM A(N), B(N), C(N)
40 TILE A(128), B(128), C(128)
50 LET C(BID) = A(BID) + B(BID)
60 OUTPUT C
70 END英文原文(Modal GPU Glossary)
cuTile BASIC is an implementation of the CUDA Tile programming model in the BASIC programming language.
BASIC stands for Beginner's All-purpose Symbolic Instruction Code. BASIC is a programming language designed, in the 1960s, for ease-of-use and interactive programming. It was popular among early microcomputer programmers like William Gates III.
cuTile BASIC was released as an April Fools' joke. It is a real, if toy, implementation of the programming model and a demonstration of its generality. You can run the vector-addition cuTile BASIC kernel below on a B200 GPU using this Modal Notebook. cuTile BASIC was developed, in part, via such Notebooks.
10 REM Vector Add: C = A + B
20 INPUT N, A(), B()
30 DIM A(N), B(N), C(N)
40 TILE A(128), B(128), C(128)
50 LET C(BID) = A(BID) + B(BID)
60 OUTPUT C
70 END相关词条
本词条改编自 Modal GPU Glossary(CC BY 4.0)· 中文翻译 miter6/gpu-glossary-zh,MAE 整理排版。