会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
0x01
computer arch/parallel programming/
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页
2022年8月20日
Effective C++ - 条款3 - 关于const的一切
摘要: const与* *符号左侧为所指对象的语义,*符号右侧为指针自身语义 const与iterator const iterator(是T* const) != const_iterator 详细原因应参考c++编译和c++设计与演化 const避免将==写成= 运算符的重载函数返回const对象可以避
阅读全文
posted @ 2022-08-20 12:08 ijpq
阅读(51)
评论(0)
推荐(0)
2022年8月17日
Effective C++ - 条款2 - in-class初值设定问题
摘要: pre 针对Effective C++ (55条)中的每一个条款写一个blog。 0x02 尽量以const, enum, inline 替换 #define 为什么需要这样做?因为使用define会使得变量被define的符号替换,在遇到错误时提示的是替换后的符号而非原始定义的符号,引起误解,因此
阅读全文
posted @ 2022-08-17 23:34 ijpq
阅读(84)
评论(0)
推荐(0)
Effective C++ - 条款2 - 使用inline template函数替换函数宏
摘要: 为什么? 即使给函数宏加上了小括号,如下 #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
阅读(62)
评论(0)
推荐(0)
2022年8月12日
conv的一些计算问题
摘要:  
阅读全文
posted @ 2022-08-12 17:14 ijpq
阅读(24)
评论(0)
推荐(0)
2022年8月10日
naive conv backward data impl with python
摘要: 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
阅读(34)
评论(0)
推荐(0)
2022年7月12日
shfl_*
摘要: 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
阅读(101)
评论(0)
推荐(0)
cuda-gdb & cuda memcheck
摘要: 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
阅读(89)
评论(0)
推荐(0)
2022年6月30日
bazel
摘要: 基本概念: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
阅读(76)
评论(0)
推荐(0)
2022年6月27日
计算cache hit rate例题
摘要: 题目 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
阅读(200)
评论(0)
推荐(0)
2022年6月24日
从vim转向nvim
摘要: 原因 大型cpp项目中经常用到【符号跳转】等功能。 vim上有两种选择,1: 使用tags系统进行静态分析,完成符号跳转;2:安装LSP支持。 对于第一种方法,即使是宣称比ctags好用的gtags,也存在无法跳转准确的情况,而ctags经常出现各种编译问题,难以解决。 对于第二种方法,给vim安装
阅读全文
posted @ 2022-06-24 16:10 ijpq
阅读(927)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页