Tests/Cuda/Complex/mixed.cpp
raw| 1 | |
| 2 | #ifdef _WIN32 |
| 3 | # define EXPORT __declspec(dllexport) |
| 4 | # define IMPORT __declspec(dllimport) |
| 5 | #else |
| 6 | # define EXPORT |
| 7 | # define IMPORT |
| 8 | #endif |
| 9 | |
| 10 | int dynamic_base_func(int); |
| 11 | IMPORT int cuda_dynamic_host_func(int); |
| 12 | int file3_launch_kernel(int); |
| 13 | |
| 14 | int dynamic_final_func(int x) |
| 15 | { |
| 16 | return cuda_dynamic_host_func(dynamic_base_func(x)); |
| 17 | } |
| 18 | |
| 19 | EXPORT int call_cuda_seperable_code(int x) |
| 20 | { |
| 21 | return file3_launch_kernel(x); |
| 22 | } |