// file: lecture_14/00_scalar/functs_00.cc // // local include files // #include "example.h" // function: my_first_kernel // // arguments: none // // return: returns void // // This method does nothing. // __global__ void my_first_kernel(void) { // print to stdout // printf("my_first_kernel (GPU): hello world from a gpu!\n"); // exit gracefully // return; } // function: my_first_add // // arguments: // int* c: (output) result // int* a: (input) first operand // int* b: (input) second operand // // return: returns void // // This method adds two numbers. // __global__ void my_first_add(int *c, int *a, int *b) { // add the arguments // *c = *a + *b; // exit gracefully // return; }