| 193 | } |
| 194 | |
| 195 | bool host_buffer::zero(const device_queue& cqueue floor_unused) { |
| 196 | if (!buffer) return false; |
| 197 | |
| 198 | GUARD(lock); |
| 199 | memset(buffer.get(), 0, size); |
| 200 | return true; |
| 201 | } |
| 202 | |
| 203 | void* __attribute__((aligned(128))) host_buffer::map(const device_queue& cqueue, |
| 204 | const MEMORY_MAP_FLAG flags_, |