Deallocates the associated system memory.
| 62 | |
| 63 | // Deallocates the associated system memory. |
| 64 | static void rpc_free(void *ptr) { |
| 65 | rpc::Client::Port port = rpc::client.open<LIBC_FREE>(); |
| 66 | port.send([=](rpc::Buffer *buffer, uint32_t) { |
| 67 | buffer->data[0] = reinterpret_cast<uintptr_t>(ptr); |
| 68 | }); |
| 69 | port.close(); |
| 70 | } |
| 71 | |
| 72 | // Convert a potentially disjoint bitmask into an increasing integer per-lane |
| 73 | // for use with indexing between gpu lanes. |
no test coverage detected