mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
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.
11 lines
127 B
Plaintext
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;
|
|
}
|