| 130 | }; |
| 131 | |
| 132 | bool mapped(size_t bytes, void** h, void** d) { |
| 133 | if (strata::core::host_alloc_guarded(h, bytes, cudaHostAllocMapped | (peer_portable() ? cudaHostAllocPortable : 0)) != cudaSuccess) return false; |
| 134 | std::memset(*h, 0, bytes); |
| 135 | return cudaHostGetDevicePointer(d, *h, 0) == cudaSuccess; |
| 136 | } |
| 137 | |
| 138 | strata::kernels::QsaShapes shapes_of(const ModelGeometry& g) { return qsa_shapes(g); } |
| 139 |