| 2 | #include "../GB_jit_launcher.h" |
| 3 | |
| 4 | int main(int argc, char **argv) { |
| 5 | |
| 6 | std::string named_program = "GB_jit_AxB_phase2"; |
| 7 | std::string kern_name = "AxB_phase2"; |
| 8 | |
| 9 | |
| 10 | jitify::experimental::Program& program = *std::get<1>(named_program); |
| 11 | auto instantiated_kernel = program.kernel(kern_name).instantiate({}); |
| 12 | |
| 13 | // hashable name is program name |
| 14 | // string to be jitted is the actual prgram |
| 15 | // |
| 16 | |
| 17 | dim3 grid(1); |
| 18 | dim3 block(1); |
| 19 | |
| 20 | // std::cout<< kernel_name<<" with types " <<GET_TYPE_NAME(dumC)<<std::endl; |
| 21 | |
| 22 | std::string hashable_name = "GB_jit_AxB_phase2"; |
| 23 | std::stringstream string_to_be_jitted ; |
| 24 | string_to_be_jitted << hashable_name << std::endl << R"(#include "GB_jit_AxB_dot3_phase2.cuh")"; |
| 25 | |
| 26 | jit::launcher( hashable_name, |
| 27 | string_to_be_jitted.str(), |
| 28 | header_names, |
| 29 | compiler_flags, |
| 30 | file_callback) |
| 31 | .set_kernel_inst( kernel_name, {}) |
| 32 | .configure(grid, block) |
| 33 | .launch( nanobuckets, blockBucket, bucketp, bucket, C->mat, cnz); |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | } |
nothing calls this directly
no test coverage detected