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:
Robert Maynard
2020-01-03 16:43:26 -05:00
parent 907bb7df57
commit 6e474364d1
16 changed files with 480 additions and 5 deletions
@@ -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;
}