timerring

Docker With GPU

March 18, 2025 · 2 min read
Tutorial
Docker | GPU

This post is to introduce how to use gpu in docker, which also covers the basic usage of gpu on the host machine.

...


CUDA Thread Indexing

August 9, 2023 · 18 min read
Tutorial
CUDA | GPU

结合向量相加和图像处理,介绍 CPU 与 GPU 内存操作、线程索引以及 Grid 和 Block 的配置。

我们要处理的问题

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

回顾一下 CUDA 程序的编写:

  1. 把输入数据从 CPU 内存复制到 GPU 显存
  2. 在执行芯片上缓存数据,加载 GPU 程序并执行
  3. 将计算结果从 GPU 显存中复制到 CPU 内存中
...


AI开发硬件环境综述

March 14, 2023 · 17 min read
Tutorial
GPU

笔记本选配 #

出于通勤等因素,建议型号

  • MacBook Air M1 16+ 256

  • MacBook Pro M1 16 + 256

M1芯片的mbp非常强大,发热不严重,甚至在Air版没风扇.

...


Overview of the AI Development Software Environment

March 14, 2023 · 6 min read
Tutorial
Linux | GPU | Python

Regarding software:

  1. Installation of the ubuntu operating system
  2. Abandon bash, embrace zsh
  3. Use of package managers,
  4. Install the NVIDIA GPU driver
  5. Software installation:Miniconda
  6. Software installation:Python IDE
  7. Software installation: ssh
  8. Software installation:Git
  9. Installation of other productivity software
...