摘要: 在安装GPGPU-sim前需要安装CUDA 安装CUDA 从 Nvidia 官网网站下载适用于WSL Ubuntu 的 CUDA,在此选择的版本为 11.8.0(具体请参考例如 Tensorflow 等所需工具的依赖版本),相关平台选项如下: Operating System:Linux Archi 阅读全文
posted @ 2025-06-19 15:03 King--jin 阅读(11) 评论(0) 推荐(0)
摘要: bfloat16_t f32_to_bf16( float32_t a ) { union ui32_f32 uA; uint_fast32_t uiA; bool sign; int_fast16_t exp; uint_fast32_t frac; struct commonNaN common 阅读全文
posted @ 2025-04-09 21:39 King--jin 阅读(39) 评论(0) 推荐(0)
摘要: 一、传统方法 mkdir build && cd build && cmake .. && make -j && make install 包含了构造项目,编译和安装二进制/库/文件的行为 需要指定安装路径默认路径/usr/local,故可以在CMakeLists.txt(或者命令(-DCMAKE_ 阅读全文
posted @ 2025-03-26 15:31 King--jin 阅读(81) 评论(0) 推荐(0)
摘要: FP32: 1bit符号位,8bit指数,23bit底数位。 FP16: 1bit符号位,5bit指数,10bit底数位。 BF16: 1bit符号位,8bit指数,7bit底数位 FP16转FP32 NAN/INF:对应的FP32的值 +0/-0: +0/-0 normal:指数+0x70,底数左 阅读全文
posted @ 2024-07-26 21:17 King--jin 阅读(62) 评论(0) 推荐(0)
摘要: cmdline 项目托管地址:https://github.com/tanakh/cmdline https://blog.51cto.com/u_15127663/4587654 https://www.cnblogs.com/ljbguanli/p/7235424.html // include 阅读全文
posted @ 2024-03-25 14:09 King--jin 阅读(269) 评论(0) 推荐(0)
摘要: https://www.runoob.com/cplusplus/cpp-files-streams.html 头文件包含:必须在 C++ 源代码文件中包含头文件 <iostream> 和 <fstream> # 数据类型 ofstream: 该数据类型表示输出文件流,用于创建文件并向文件写入信息. 阅读全文
posted @ 2024-03-20 22:06 King--jin 阅读(18) 评论(0) 推荐(0)
摘要: https://www.linuxidc.com/Linux/2019-04/158177.htm sudo apt search python3-tk sudo apt install python3-tk 阅读全文
posted @ 2023-09-26 20:41 King--jin 阅读(219) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/56943330 阅读全文
posted @ 2023-09-13 23:56 King--jin 阅读(16) 评论(0) 推荐(0)
摘要: systemC 源码获取: gitee上获取:https://gitee.com/soc-esl/systemc?_from=gitee_search git clone git@gitee.com:soc-esl/systemc.git systemC 编译安装 进入到systemc目录切换到2. 阅读全文
posted @ 2023-09-13 23:55 King--jin 阅读(45) 评论(0) 推荐(0)
摘要: python默认提供的列表sort方法,仅支持列表的元素排序。若想实现结构提排序,可参考下面方法: 1、使用 lambda 表达式 1 class struct: 2 def __init__ (self): 3 self.a = 0 4 self.b = 'a' 5 6 struct_list = 阅读全文
posted @ 2023-09-12 21:16 King--jin 阅读(212) 评论(0) 推荐(0)