Files
CMake/Tests/CudaOnly/SharedRuntimePlusToolkit/main.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

24 lines
335 B
Plaintext

#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;
}