file1.cu 127 B

12345678910
  1. #include "file1.h"
  2. result_type __device__ file1_func(int x)
  3. {
  4. result_type r;
  5. r.input = x;
  6. r.sum = x * x;
  7. return r;
  8. }