Posts by Category

Notes

从C语言到二进制程序[第五期一生一芯计划 - P4]

less than 1 minute read

Slides 笔记 预处理: 主要是文本替换, #include, #define等; 其他还有去除注释, 条件编译(#ifdef等), 字符串拼接等. 编译 词法分析: 识别token与位置, 本质文本匹配. 语法分析: 根据C语法把tok...

[MLC-机器学习编译]05 自动程序优化

less than 1 minute read

official notes (中文) 笔记 这节课就讲了自动搜变换的工具, 信息量比较少. sample_perfect_tile用于对一个循环进行整数拆分. meta_schedule用于auto-scheduling, 实际上是用估值函数进行启发式搜索, 需要安装x...

[MLC-机器学习编译]04 端到端模型整合

less than 1 minute read

official notes (中文) 笔记 用两个linear层的Fasion-MNIST模型来解释relax. call_tir中的一些设计: destination passing: 将输出也作为输入传入, 方便内存管理(让高层库去做内存操作, 底...

[MLC-机器学习编译]03作业: TensorIR练习

7 minute read

笔记 parallel需要在decompose_reduction前, 参考TA解答. Definition of compute_at: Given a producer and a consumer, compute_at allows to compute part of the producer...

[NVIDIA-CUDA-冬令营2022]02 初识CUDA & 线程层次

less than 1 minute read

笔记 最近开始自己写些东西, 感觉很多基础概念还是很模糊, 找到了一个比较近的tutorial, 感觉更清晰一些. 设备与函数调用   调用位置 执行位置 __device__ ...

[MLC-机器学习编译]03 张量程序实践

less than 1 minute read

official notes (English) 笔记 首先对上节课一些没有详细介绍的概念给出解释: block: 用于计算单元. axis: [block_axis] = T.axis.[axis_type...

[NVIDIA CUDA编程教程]07 CUDA编程(1)

1 minute read

笔记 CUDA术语: Host主机端, 通常指CPU, Device设备端, 通常指GPU, 强调区分两者主要是因为目前物理存储仍然不同. Kernel指GPU上数据并行处理的函数. Grid指一维/二维线程块(block). ...

[MLC-机器学习编译]02 张量程序抽象

less than 1 minute read

official notes (中文) 笔记 本章以向量相加为例介绍了如何表示张量程序的抽象, 如何对张量函数进行变换/优化, 如何将抽象转化为可执行的函数. 视频21:30处的例子是错的, 原式调换循环等价, 具体见 https://github.com/mlc-ai/ml...

Back to Top ↑

Solutions

Google Kick Start 2022 Round H Solution

3 minute read

Google Kick Start Round H 2022 Running in Circles 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #include <bits/stdc++.h> using na...

Google Kick Start 2022 Round G Solution

5 minute read

Google Kick Start Round G 2022 Walktober 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #include <bits/stdc++.h> using namespace std;...

Google Kick Start 2022 Round F Solution

4 minute read

Google Kick Start Round F 2022 Sort the Fabrics 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 #include...

Google Kick Start 2022 Round E Solution

4 minute read

Google Kick Start Round E 2022 Coloring Game 1 2 3 4 5 6 7 8 9 10 11 12 13 #include <bits/stdc++.h> using namespace std; int main() { int T; ...

Back to Top ↑

Paper Reading

Back to Top ↑