(n_elements_per_chunk, n_chunks)
| 986 | |
| 987 | |
| 988 | def make_chunked_array(n_elements_per_chunk, n_chunks): |
| 989 | arrs = [] |
| 990 | carrs = [] |
| 991 | for _ in range(n_chunks): |
| 992 | batch = make_recordbatch(n_elements_per_chunk) |
| 993 | cbuf = cuda.serialize_record_batch(batch, global_context) |
| 994 | cbatch = cuda.read_record_batch(cbuf, batch.schema) |
| 995 | arrs.append(batch["f0"]) |
| 996 | carrs.append(cbatch["f0"]) |
| 997 | |
| 998 | return pa.chunked_array(arrs), pa.chunked_array(carrs) |
| 999 | |
| 1000 | |
| 1001 | def test_print_chunked_array(): |
no test coverage detected