summaryrefslogtreecommitdiff
path: root/tests/projects/cuda/shared/inc/lib.cuh
blob: 84d5db3ca2c3737e17a95cf07b0f058fa021755e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "cuda_runtime.h"
#include "device_launch_parameters.h"

#ifdef __cplusplus
extern "C"
{
#endif

#if defined(_WIN32)
#define __export __declspec(dllexport)
#elif defined(__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
#define __export __attribute__((visibility("default")))
#else
#define __export
#endif

    __export cudaError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size);

#ifdef __cplusplus
}
#endif