Files
CMake/Tests/CudaOnly/SeparateCompilationTargetObjects/foo.cu
Robert Maynard cd984261e1 CUDA: Device linking now uses TARGET_OBJECTS content
Due to an oversight in cmLinkLineDeviceComputer object
files did not get propagate to the device linking phase
when given via the `$<TARGET_OBJECTS>` generator expression.
2023-09-25 08:50:38 -04:00

19 lines
226 B
Plaintext

#include <iostream>
#ifdef _WIN32
# define EXPORT __declspec(dllexport)
#else
# define EXPORT __attribute__((__visibility__("default")))
#endif
__global__ void k1()
{
}
EXPORT int foo()
{
k1<<<1, 1>>>();
return 0;
}