Debian Codegraph @

Tests/Cuda/Complex/main.cpp

raw
1 #include "file1.h"
2 #include "file2.h"
3
4 #ifdef _WIN32
5 # define IMPORT __declspec(dllimport)
6 #else
7 # define IMPORT
8 #endif
9
10 IMPORT int choose_cuda_device();
11 IMPORT int call_cuda_seperable_code(int x);
12 IMPORT int mixed_launch_kernel(int x);
13
14 int main(int argc, char** argv)
15 {
16 int ret = choose_cuda_device();
17 if (ret) {
18 return 0;
19 }
20
21 int r1 = call_cuda_seperable_code(42);
22 int r2 = mixed_launch_kernel(42);
23
24 return (r1 == 42 || r2 == 42) ? 1 : 0;
25 }