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

#include "cuda_runtime.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