DFT-EFE
 
Loading...
Searching...
No Matches
DeviceAPICalls.h
Go to the documentation of this file.
1#ifdef DFTEFE_WITH_DEVICE
2
3# ifndef dftefeDeviceAPICalls_H
4# define dftefeDeviceAPICalls_H
5
6# include "TypeConfig.h"
7
8namespace dftefe
9{
10 namespace utils
11 {
12 void
13 deviceGetDeviceCount(int *count);
14
15 void
16 deviceGetDevice(int *deviceId);
17
18 void
19 deviceSetDevice(int deviceId);
20
21 void
22 deviceMalloc(void **devPtr, size_type size);
23
24 void
25 deviceMemset(void *devPtr, size_type count);
26
33 template <typename ValueType>
34 void
35 deviceSetValue(ValueType *devPtr, ValueType value, size_type size);
36
37 void
38 deviceFree(void *devPtr);
39
40 void
41 hostPinnedMalloc(void **hostPtr, size_type size);
42
43 void
44 hostPinnedFree(void *hostPtr);
45
50 void
51 deviceMemcpyD2H(void *dst, const void *src, size_type count);
52
57 void
58 deviceMemcpyD2D(void *dst, const void *src, size_type count);
59
64 void
65 deviceMemcpyH2D(void *dst, const void *src, size_type count);
66 } // namespace utils
67} // namespace dftefe
68
69# endif // dftefeDeviceAPICalls_H
70#endif // DFTEFE_WITH_DEVICE
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8