#include <type_traits>
Go to the source code of this file.
|
| #define | cpuMalloc(ptr, nbBytes) ptr = (decltype(ptr)) malloc(nbBytes) |
| |
| #define | protoMallocCPU(PTR, NBYTES) storeMemInfo(Proto::HOST,NBYTES); countMallocHost(cpuMalloc(PTR, NBYTES)) |
| |
| #define | protoFreeCPU(PTR) free(PTR) |
| |
| #define | protoHostAlloc(a, b) storeMemInfo(Proto::HOST,b); countMallocHost(cpuMalloc(a, b)) |
| |
| #define | protoFreeHost(PTR) free(PTR) |
| |
| #define | protoMemcpyDeviceToDevice false |
| |
| #define | protoMemcpyHostToDevice false |
| |
| #define | protoMemcpyDeviceToHost false |
| |
| #define | protoMemcpyCPU(to, from, size, copyType) std::memcpy(to,from,size) |
| |
| #define | protoMemcpyAsyncCPU(to, from, size, copyType, stream) std::memcpy(to,from,size) |
| |
| #define | protoMemcpyFromSymbolCPU(a, b, c, d, e) std::memcpy(a,b,c) |
| |
| #define | protoMemcpyToSymbolCPU(a, b, c, d, e) std::memcpy(a,b,c) |
| |
| #define | protoDeviceSynchronizeCPU() |
| |
◆ cpuMalloc
| #define cpuMalloc |
( |
|
ptr, |
|
|
|
nbBytes |
|
) |
| ptr = (decltype(ptr)) malloc(nbBytes) |
◆ protoMallocCPU
◆ protoFreeCPU
| #define protoFreeCPU |
( |
|
PTR | ) |
free(PTR) |
◆ protoHostAlloc
◆ protoFreeHost
| #define protoFreeHost |
( |
|
PTR | ) |
free(PTR) |
◆ protoMemcpyDeviceToDevice
| #define protoMemcpyDeviceToDevice false |
◆ protoMemcpyHostToDevice
| #define protoMemcpyHostToDevice false |
◆ protoMemcpyDeviceToHost
| #define protoMemcpyDeviceToHost false |
◆ protoMemcpyCPU
| #define protoMemcpyCPU |
( |
|
to, |
|
|
|
from, |
|
|
|
size, |
|
|
|
copyType |
|
) |
| std::memcpy(to,from,size) |
◆ protoMemcpyAsyncCPU
| #define protoMemcpyAsyncCPU |
( |
|
to, |
|
|
|
from, |
|
|
|
size, |
|
|
|
copyType, |
|
|
|
stream |
|
) |
| std::memcpy(to,from,size) |
◆ protoMemcpyFromSymbolCPU
| #define protoMemcpyFromSymbolCPU |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e |
|
) |
| std::memcpy(a,b,c) |
◆ protoMemcpyToSymbolCPU
| #define protoMemcpyToSymbolCPU |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e |
|
) |
| std::memcpy(a,b,c) |
◆ protoDeviceSynchronizeCPU
| #define protoDeviceSynchronizeCPU |
( |
| ) |
|