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