mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
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.
24 lines
335 B
C++
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;
|
|
}
|