mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
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.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
# define IMPORT __declspec(dllimport)
|
||||
# define EXPORT __declspec(dllexport)
|
||||
#else
|
||||
# define IMPORT
|
||||
# define EXPORT
|
||||
#endif
|
||||
|
||||
int curand_main();
|
||||
int nppif_main();
|
||||
|
||||
EXPORT int shared_version()
|
||||
{
|
||||
return curand_main() == 0 && nppif_main() == 0;
|
||||
}
|
||||
Reference in New Issue
Block a user