Files
CMake/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp
Robert Maynard 6e474364d1 CUDAToolkit: No targets now depend on the CUDA runtime
It is not a requirement to have shared|static consistent across your
CUDA libraries (e.g curand, nppc ) and your CUDA runtime library.
It is entirely allowable to use a static nppc and a shared runtime.
2020-01-14 13:50:37 -05:00

24 lines
335 B
C++

#ifdef _WIN32
# define IMPORT __declspec(dllimport)
IMPORT int shared_version();
int static_version()
{
return 0;
}
int mixed_version()
{
return 0;
}
#else
int shared_version();
int static_version();
int mixed_version();
#endif
int main()
{
return mixed_version() == 0 && shared_version() == 0 &&
static_version() == 0;
}