摘要: 1.https://gist.github.com/jpz/1c33c466b9af1287abfa51497ab1c0a4 阅读全文
posted @ 2023-12-01 11:31 Mr42Sir 阅读(36) 评论(0) 推荐(0)
摘要: 背景 编译报错 OpenCL platform ID is empty OpenCL platform name is empty Failed to find any of these OpenCL platforms: Intel(R) FPGA Emulation Platform for O 阅读全文
posted @ 2023-11-30 15:37 Mr42Sir 阅读(144) 评论(0) 推荐(0)
摘要: 注意,是配置root用户的 export ROOT=/home export QUARTUS_ROOTDIR=$ROOT/intelFPGA/18.1/quartus export INTELFPGAOCLSDKROOT=$ROOT/intelFPGA/18.1/hld export PATH=$P 阅读全文
posted @ 2023-11-29 10:43 Mr42Sir 阅读(88) 评论(0) 推荐(0)
摘要: 参考链接: https://www.zhihu.com/column/c_1165595669594689536 阅读全文
posted @ 2023-11-19 22:00 Mr42Sir 阅读(28) 评论(0) 推荐(0)
摘要: 一、具体操作 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo| grep "cpu cores"| uniq 查看逻辑CPU的个数 阅读全文
posted @ 2023-11-18 10:18 Mr42Sir 阅读(70) 评论(0) 推荐(0)
摘要: 一、进入docker容器,并以bash命令与该docker容器交互 sudo docker exec -it docker容器id bash 阅读全文
posted @ 2023-11-16 15:16 Mr42Sir 阅读(149) 评论(0) 推荐(0)
摘要: In the CMake script you provided, the second parameter of the add_library() function is an empty string "". This is a common pattern used in CMake to 阅读全文
posted @ 2023-11-15 17:53 Mr42Sir 阅读(110) 评论(0) 推荐(0)
摘要: 背景 笔者学习WonderTrader的源码的一些心得体会,本文基于WonderTrader0.9.8,讲解其中的DLLHelper类 先看它的应用 1. wondertrader\src\TestTrader\main.cpp 2. wondertrader\src\Includes\ITrade 阅读全文
posted @ 2023-11-14 16:16 Mr42Sir 阅读(372) 评论(0) 推荐(0)
摘要: ![](https://img2023.cnblogs.com/blog/1151941/202311/1151941-20231101103951262-1255503994.png) 阅读全文
posted @ 2023-11-01 10:40 Mr42Sir 阅读(55) 评论(0) 推荐(0)
摘要: 背景 在和chatGPT的日常代码交流中,这位“老师”总能给出不不少好代码,以下就是 C++从std::vector类型数据创建二叉树 的完整代码段: TreeNode* createBinaryTree(const std::vector<int>& nodes, int index) { if 阅读全文
posted @ 2023-10-27 15:51 Mr42Sir 阅读(154) 评论(0) 推荐(0)