cmake/Tests/Cuda/Complex/mixed.cpp

23 lines
410 B
C++
Raw Normal View History

2017-04-14 19:02:05 +02:00
#ifdef _WIN32
2018-08-09 18:06:22 +02:00
# define EXPORT __declspec(dllexport)
# define IMPORT __declspec(dllimport)
2017-04-14 19:02:05 +02:00
#else
2018-08-09 18:06:22 +02:00
# define EXPORT
# define IMPORT
2017-04-14 19:02:05 +02:00
#endif
int dynamic_base_func(int);
IMPORT int cuda_dynamic_host_func(int);
int file3_launch_kernel(int);
int dynamic_final_func(int x)
{
return cuda_dynamic_host_func(dynamic_base_func(x));
}
EXPORT int call_cuda_seperable_code(int x)
{
return file3_launch_kernel(x);
}