相关代码 |
|
#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 a, istream b, ostream c, uc& 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