Go to the documentation of this file. 5 #define cpuMalloc(ptr,nbBytes) ptr = (decltype(ptr)) malloc(nbBytes) 7 #define protoMallocCPU(PTR,NBYTES) storeMemInfo(Proto::HOST,NBYTES); countMallocHost(cpuMalloc(PTR, NBYTES)) 8 #define protoFreeCPU(PTR) free(PTR) 11 #define protoHostAlloc(a,b) storeMemInfo(Proto::HOST,b); countMallocHost(cpuMalloc(a, b)) 12 #define protoFreeHost(PTR) free(PTR) 15 #define protoHostAlloc(a,b) storeMemInfo(Proto::HOST,b); countMallocHost(hipHostMalloc(&a, b)) 16 #define protoFreeHost(PTR) hipHostFree(PTR) 18 #define protoHostAlloc(a,b) storeMemInfo(Proto::HOST,b); countMallocHost(cudaMallocHost(&a, b)) 19 #define protoFreeHost(PTR) cudaFreeHost(PTR) 26 #define protoMemcpyDeviceToDevice false 27 #define protoMemcpyHostToDevice false 28 #define protoMemcpyDeviceToHost false 36 #define protoMemcpyCPU(to,from,size,copyType) std::memcpy(to,from,size) 37 #define protoMemcpyAsyncCPU(to,from,size,copyType,stream) std::memcpy(to,from,size) 38 #define protoMemcpyFromSymbolCPU(a,b,c,d,e) std::memcpy(a,b,c) 39 #define protoMemcpyToSymbolCPU(a,b,c,d,e) std::memcpy(a,b,c) 41 #define protoDeviceSynchronizeCPU()