| 178 | (void) hipGetLastError(); |
| 179 | } |
| 180 | hipMemAllocationProp alloc_prop(int dev) { |
| 181 | hipMemAllocationProp p{}; |
| 182 | p.type = hipMemAllocationTypePinned; |
| 183 | p.requestedHandleType = hipMemHandleTypeNone; |
| 184 | p.location.type = hipMemLocationTypeDevice; |
| 185 | p.location.id = dev; |
| 186 | return p; |
| 187 | } |
| 188 | const Api& api() { |
| 189 | static Api& a = *new Api; // never destroyed: the K/V pools and the cache release their chunks from static destructors |
| 190 | static std::once_flag once; |
no outgoing calls
no test coverage detected