Files
CMake/Tests/CudaOnly/SharedRuntimePlusToolkit/mixed.cu
Robert Maynard 0d0145138f CUDA: Add abstraction for cuda runtime selection
Fixes #17559
Replace our hard-coded default of cudart=static with a first-class abstraction to select the runtime library from an enumeration of logical names.
2020-01-27 16:02:26 -05:00

17 lines
274 B
Plaintext

#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 mixed_version()
{
return curand_main() == 0 && nppif_main() == 0;
}