main.cu 325 B

1234567891011121314151617181920212223
  1. #include <iostream>
  2. #ifdef _WIN32
  3. #define IMPORT __declspec(dllimport)
  4. #else
  5. #define IMPORT
  6. #endif
  7. int static_cuda11_func(int);
  8. IMPORT int shared_cuda11_func(int);
  9. void test_functions()
  10. {
  11. static_cuda11_func(int(42));
  12. shared_cuda11_func(int(42));
  13. }
  14. int main(int argc, char** argv)
  15. {
  16. test_functions();
  17. return 0;
  18. }