Docker With GPU
March 18, 2025 · 2 min read

This post is to introduce how to use gpu in docker, which also covers the basic usage of gpu on the host machine.
...
This post is to introduce how to use gpu in docker, which also covers the basic usage of gpu on the host machine.
...通过代码实践 CUDA 矩阵乘法与转置,理解 GPU 存储单元与并行计算。
...结合向量相加和图像处理,介绍 CPU 与 GPU 内存操作、线程索引以及 Grid 和 Block 的配置。
我们要处理的问题

如图,有离散型的,例如向量相加等等。有 local 卷积类型的,用其他一片的元素值求得一个元素。还有 All to All 类型的,类似于傅里叶变换。
回顾一下 CUDA 程序的编写:

从第一个 CUDA 程序开始,实践 NVCC 编译、Makefile、多文件编译、线程索引和性能分析。
...梳理 CUDA 异构计算、执行空间说明符、线程层次、NVCC 编译流程和 NVProf 性能分析。
...介绍 CPU 与 GPU 的架构差异、GPU 硬件平台、Jetson 设备及 Amdahl 定律。
...从 CUDA 与 NVIDIA 技术生态入门,介绍 Ubuntu、Jetson 开发环境、权限管理、SSH 和 Makefile。
...
出于通勤等因素,建议型号
MacBook Air M1 16+ 256
MacBook Pro M1 16 + 256
M1芯片的mbp非常强大,发热不严重,甚至在Air版没风扇.
...Regarding software:
介绍 CUDA 的基本概念、支持的编程语言、发展历程及 GPU 加速计算的应用。
...