summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/ProperLinkFlags/file1.cu
blob: d93dc9f44f4e8c4674f5494b7e06914becab3a8b (plain)
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;
}