📄 test_kc.hpp
字号:
#ifndef _TEST_KC
#define _TEST_KC
// header files must be in this order
#include "idb_types.hpp"
#include "idb_deftypes.hpp"
// declare the kernel
kernel addAndSum(istream<int> a,
istream<int> b,
ostream<int> c,
uc<int>& uc_sum);
// these are required for each kernel
KERNELDECL(addAndSum);
#define addAndSum KERNELCALL(addAndSum)
// don’t forget this line at the end!
#include "idb_undeftypes.hpp"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -