file1.cu 140 B

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