Files
CMake/Tests/CudaOnly/ResolveDeviceSymbols/file1.cu
Robert Maynard 493671a521 CUDA: Static libraries can now explicitly resolve device symbols
If a static library has the property CUDA_RESOLVE_DEVICE_SYMBOLS enabled
it will now perform the device link step. The normal behavior is
to delay calling device link until the static library is consumed by
a shared library or an executable.
2017-04-26 16:18:25 -04:00

11 lines
127 B
Plaintext

#include "file1.h"
result_type __device__ file1_func(int x)
{
result_type r;
r.input = x;
r.sum = x * x;
return r;
}