mixed.cpp 402 B

12345678910111213141516171819202122
  1. #ifdef _WIN32
  2. #define EXPORT __declspec(dllexport)
  3. #define IMPORT __declspec(dllimport)
  4. #else
  5. #define EXPORT
  6. #define IMPORT
  7. #endif
  8. int dynamic_base_func(int);
  9. IMPORT int cuda_dynamic_host_func(int);
  10. int file3_launch_kernel(int);
  11. int dynamic_final_func(int x)
  12. {
  13. return cuda_dynamic_host_func(dynamic_base_func(x));
  14. }
  15. EXPORT int call_cuda_seperable_code(int x)
  16. {
  17. return file3_launch_kernel(x);
  18. }