| 203 | } |
| 204 | |
| 205 | void* hostToDevicePointer(void* host, enum Memkind memkind) { |
| 206 | if (host == nullptr) { |
| 207 | return nullptr; |
| 208 | } |
| 209 | if (memkind == Memkind::PinnedMemory) { |
| 210 | #ifdef ACL_DEVICE |
| 211 | return device::DeviceInstance::getInstance().api->devicePointer(host); |
| 212 | #else |
| 213 | return host; |
| 214 | #endif |
| 215 | } else { |
| 216 | return host; |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | void printMemoryAlignment(std::vector<std::vector<unsigned long long>> memoryAlignment) { |
| 221 | logDebug() << "printing memory alignment per struct"; |
no outgoing calls
no test coverage detected