mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -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.
17 lines
275 B
C++
17 lines
275 B
C++
|
|
#ifdef _WIN32
|
|
# define IMPORT __declspec(dllimport)
|
|
# define EXPORT __declspec(dllexport)
|
|
#else
|
|
# define IMPORT
|
|
# define EXPORT
|
|
#endif
|
|
|
|
IMPORT int curand_main();
|
|
IMPORT int nppif_main();
|
|
|
|
EXPORT int static_version()
|
|
{
|
|
return curand_main() == 0 && nppif_main() == 0;
|
|
}
|