summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/Complex/main.cpp
blob: 92d1fb0f1fc3837195a0d96e34318f3678937213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>

#include "file1.h"
#include "file2.h"

#ifdef _WIN32
#define IMPORT __declspec(dllimport)
#else
#define IMPORT
#endif

IMPORT int call_cuda_seperable_code(int x);
IMPORT int mixed_launch_kernel(int x);

int main(int argc, char** argv)
{
  int r1 = call_cuda_seperable_code(42);
  int r2 = mixed_launch_kernel(42);
  return (r1 == 42 || r2 == 42) ? 1 : 0;
}