上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: pre 针对Effective C++ (55条)中的每一个条款写一个blog。 0x02 尽量以const, enum, inline 替换 #define 为什么需要这样做?因为使用define会使得变量被define的符号替换,在遇到错误时提示的是替换后的符号而非原始定义的符号,引起误解,因此 阅读全文
posted @ 2022-08-17 23:34 ijpq 阅读(80) 评论(0) 推荐(0)
摘要: 为什么? 即使给函数宏加上了小括号,如下 #define F(a,b) f((a)>(b)?(a):(b)) 但仍会在使用++运算符时产生问题 F(++a,b) // 替换为 f((++a)>(b)?(++a):(b)) 怎么做 永远使用inline template替换函数宏 template < 阅读全文
posted @ 2022-08-17 23:26 ijpq 阅读(58) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/1481923/202208/1481923-20220812171347258-1179903592.jpg) ![](https://img2022.cnblogs.com/blog/1481923/202208/1481923-20220812171401996-1402994955.jpg) 阅读全文
posted @ 2022-08-12 17:14 ijpq 阅读(21) 评论(0) 推荐(0)
摘要: Untitled1 In [16]: import numpy as np np.set_printoptions(suppress=True) # 1,1,10,10; 1,1,2,2; 1,10,10; 1,10,10; 1,1,9,9 In [17]: N = 1 IC = 1 FH = FW 阅读全文
posted @ 2022-08-10 10:49 ijpq 阅读(30) 评论(0) 推荐(0)
摘要: shfl_xor cuda docs 搜索 shfl_xor https://tschmidt23.github.io/cse599i/CSE%20599%20I%20Accelerated%20Computing%20-%20Programming%20GPUs%20Lecture%2018.pd 阅读全文
posted @ 2022-07-12 17:12 ijpq 阅读(97) 评论(0) 推荐(0)
摘要: https://www.nersc.gov/assets/Uploads/05-Debugging-on-GPU.pdf https://ece.northeastern.edu/groups/nucar/Analogic/cuda-gdb.pdf 阅读全文
posted @ 2022-07-12 17:11 ijpq 阅读(87) 评论(0) 推荐(0)
摘要: 基本概念:https://docs.bazel.build/versions/main/build-ref.html#BUILD_files 文档搜索:https://bazel.build/reference/be/general#filegroup 中文博客简介:https://blog.csd 阅读全文
posted @ 2022-06-30 10:49 ijpq 阅读(74) 评论(0) 推荐(0)
摘要: 题目 cache结构分析 1kB blocks => 2^10 B => b=10 1MB Mem => 2^20 B => m=20 16kB cache with 1kB block => 16(2^4)set => s=4 m = s+t+b => t=6 分析line1的冲突情况 注意,此手 阅读全文
posted @ 2022-06-27 19:56 ijpq 阅读(196) 评论(0) 推荐(0)
摘要: 原因 大型cpp项目中经常用到【符号跳转】等功能。 vim上有两种选择,1: 使用tags系统进行静态分析,完成符号跳转;2:安装LSP支持。 对于第一种方法,即使是宣称比ctags好用的gtags,也存在无法跳转准确的情况,而ctags经常出现各种编译问题,难以解决。 对于第二种方法,给vim安装 阅读全文
posted @ 2022-06-24 16:10 ijpq 阅读(920) 评论(0) 推荐(0)
摘要: 基本 gitignore A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the N 阅读全文
posted @ 2022-06-23 18:50 ijpq 阅读(47) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页