2017-04-14 19:02:05 +02:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
2018-08-09 18:06:22 +02:00
|
|
|
# define IMPORT __declspec(dllimport)
|
2017-04-14 19:02:05 +02:00
|
|
|
#else
|
2018-08-09 18:06:22 +02:00
|
|
|
# define IMPORT
|
2017-04-14 19:02:05 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
int static_cuda11_func(int);
|
|
|
|
IMPORT int shared_cuda11_func(int);
|
|
|
|
|
|
|
|
void test_functions()
|
|
|
|
{
|
|
|
|
static_cuda11_func(int(42));
|
|
|
|
shared_cuda11_func(int(42));
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
test_functions();
|
|
|
|
return 0;
|
|
|
|
}
|