Awkward Array: include/awkward/cuda-utils.h Source File

Loading...
Searching...
No Matches
cuda-utils.h
Go to the documentation of this file.
1// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
2
3#ifndef AWKWARD_CUDA_UTILS_H
4#define AWKWARD_CUDA_UTILS_H
5
6#include "awkward/common.h"
7
8extern "C" {
9 EXPORT_SYMBOL ERROR awkward_cuda_ptr_device_num(
10 int64_t* device_num,
11 void* ptr);
12
13 EXPORT_SYMBOL ERROR awkward_cuda_ptr_device_name(
14 char* name,
15 void* ptr);
16
17 EXPORT_SYMBOL ERROR awkward_cuda_host_to_device(
18 void* to_ptr,
19 void* from_ptr,
20 int64_t bytelength);
21
22 EXPORT_SYMBOL ERROR awkward_cuda_device_to_host(
23 void* to_ptr,
24 void* from_ptr,
25 int64_t bytelength);
26
27}
28
29#endif //AWKWARD_CUDA_UTILS_H
common.h
ERROR
#define ERROR
Definition: common.h:28
EXPORT_SYMBOL
#define EXPORT_SYMBOL
Definition: common.h:25
awkward_cuda_host_to_device
EXPORT_SYMBOL ERROR awkward_cuda_host_to_device(void *to_ptr, void *from_ptr, int64_t bytelength)
awkward_cuda_device_to_host
EXPORT_SYMBOL ERROR awkward_cuda_device_to_host(void *to_ptr, void *from_ptr, int64_t bytelength)
awkward_cuda_ptr_device_num
EXPORT_SYMBOL ERROR awkward_cuda_ptr_device_num(int64_t *device_num, void *ptr)
awkward_cuda_ptr_device_name
EXPORT_SYMBOL ERROR awkward_cuda_ptr_device_name(char *name, void *ptr)