摘要: 以二进制显示10,并且前面补零凑足8位 bin(10)[2:].rjust(8, '0') 输出: 00001010 阅读全文
posted @ 2022-04-14 10:06 专注于GPU的程序员 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 在0到5之间,从0开始,每隔3个数输出一次。 我是这样写的, for i in range(0,5): print(i) i += 2 输出: 0 1 2 3 4 经调查,正规操作如下, for i in range(0,5,3): print(i) 输出: 0 3 阅读全文
posted @ 2022-04-12 10:05 专注于GPU的程序员 阅读(1410) 评论(0) 推荐(0) 编辑
摘要: Cache的介绍可以参看这篇文章:计算机缓存Cache以及Cache Line详解 一般 Cache Line 的大小设置和硬件一次突发传输的大小有关系。 比如,GPU 与显存的数据位宽是 64 比特,一次突发传输可以传输 8 个数据, 也就是说,一次突发传输可以传输 64 字节的数据, 那么, L 阅读全文
posted @ 2022-04-09 16:08 专注于GPU的程序员 阅读(528) 评论(0) 推荐(0) 编辑
摘要: Full-system RISCV-based GPU Vortex RISC-V GPGPU RV64X: A Free, Open Source GPU for RISC-V Pixilica LLC Sub-system RISCV-based GPU Imagination Announce 阅读全文
posted @ 2022-04-09 15:56 专注于GPU的程序员 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 一、Zink Zink is an OpenGL implementation on top of Vulkan. Or to be a bit more specific, Zink is a Mesa Gallium driver that leverages the existing Open 阅读全文
posted @ 2021-01-03 11:08 专注于GPU的程序员 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 一、安装依赖 # dependencies of mesa # 1 others sudo yum-builddep mesa sudo yum install -y python3-devel.x86_64 meson.noarch vulkan-devel.x86_64 sudo pip3 in 阅读全文
posted @ 2021-01-03 10:12 专注于GPU的程序员 阅读(1647) 评论(0) 推荐(0) 编辑
摘要: # dependencies of gcc-10.2.0 sudo yum install -y gmp-devel.x86_64 mpfr-devel.x86_64 libmpc-devel.x86_64 # gcc-10.2.0 curl -O ftp://mirror.easyname.at/ 阅读全文
posted @ 2021-01-03 09:40 专注于GPU的程序员 阅读(139) 评论(0) 推荐(0) 编辑
摘要: # 安装依赖 $ sudo yum-builddep mesa # 需要高版本的GCC,支持C++14即可 $ curl -O ftp://mirror.easyname.at/gnu/gcc/gcc-10.2.0/gcc-10.2.0.tar.gz $ cd gcc-10.2.0 $ ./conf 阅读全文
posted @ 2020-12-27 22:30 专注于GPU的程序员 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 亲测可成功安装! mesa版本:mesa-20.3.1 ## 安装依赖 pip3 install mako brew install meson brew install cmake brew install pkg-config brew install expat brew install fl 阅读全文
posted @ 2020-12-24 19:12 专注于GPU的程序员 阅读(561) 评论(0) 推荐(0) 编辑
摘要: Real-time Translator from OpenGL to OpenGL ES for Mobile Devices http://icat.vrsj.org/papers/2004/Poster_Session/P-016.pdf 阅读全文
posted @ 2020-12-20 13:36 专注于GPU的程序员 阅读(113) 评论(0) 推荐(0) 编辑