| 39 | throw std::runtime_error("store: " + what + ": " + (s ? s : "unknown error")); |
| 40 | } |
| 41 | bool is_host(int loc) { return loc >= NCARD; } |
| 42 | int card_of(int loc) { return loc % NCARD; } |
| 43 | CUmemAllocationProp prop_of(int loc) { |
| 44 | CUmemAllocationProp p{}; |