cudf icon indicating copy to clipboard operation
cudf copied to clipboard

Collaborations on columnar data structures

Open wesm opened this issue 9 years ago • 6 comments

Excited to see this new org created. I am interested to see if Apache Arrow (i.e. contiguous columnar data, validity bitmap for nulls) is the appropriate data model for data on the GPU, and if we can collaborate on some aspects of the code. It seems that CUDA 7 now supports C++11, so in theory we could compile the Arrow C++ libraries with nvcc and provide necessary APIs to enable Numba to interact with the raw memory buffers. This might simplify IPC with GPU main memory (record batch loading and unloading) and make less work for you here. I have an NVIDIA GPU on my home desktop, so I could help with testing.

wesm avatar May 08 '17 14:05 wesm

Hi @wesm, thanks for this. Yes we are excited about Arrow (even though we are only supporting a subset at the moment) because it provides interoperability with lots of other things and makes sense as a way to represent columnar data. I don't see any issues why it should not be performant on GPU, as the MapD native format is quite similar (except we store nulls in-line when possible to save space and bandwidth). Would it make sense to set up a call with the project members so we can discuss ways to collaborate?

tmostak avatar May 16 '17 16:05 tmostak

That sounds good to me. Adding @julienledem @xhochy since they will be interested, and maybe other from the Apache Arrow team.

I am interested in

  • Ingest data (zero-copy, preferably) from Arrow record batches
  • Ingest data to MapD from Arrow
  • Export data as Arrow record batches
  • UDF protocol for batch-based UDFs
  • Benchmarks and analysis of pros/cons of different columnar-type memory layouts on the GPU (you say you store nulls inline -- does that mean sentinel values? Otherwise I am not sure how you could be more efficient that 1 bit per value for data that has nulls).

As background, I did some GPU development for accelerating Bayesian inference problems years ago and did a fair amount of CUDA C and PyCUDA work, so I've had a long-standing interest in architecting data structures and memory access patterns for the GPU.

wesm avatar May 16 '17 17:05 wesm

Bingo on all fronts, all things mentioned in the talk I gave last week at GTC. We have also some basic work to do for supporting the rest of the data types (prototype did only simple, uncompress numerics to keep it simple).

billmaimone avatar May 16 '17 21:05 billmaimone

Does the GPU benefit from columnar compression techniques like CPU-based columnar databases do?

wesm avatar May 18 '17 21:05 wesm

@wesm, we already have some in core engine like dictionary compression. And we are planning to tokenize any string column that only has digits to save memory, but they don't require to be columnar if you just mean sth. like RLE or HCC. All ways aim to keep GPU decoding fast.

m1mc avatar May 18 '17 21:05 m1mc

PFOR and run-length also planned, not yet done.

On Thu, May 18, 2017 at 2:56 PM, Minggang Yu [email protected] wrote:

@wesm https://github.com/wesm, we already have some in core engine like dictionary compression. And we are planning to tokenize any string column that only has digits to save memory.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gpuopenanalytics/pygdf/issues/1#issuecomment-302552778, or mute the thread https://github.com/notifications/unsubscribe-auth/AHEP-HaH_AM9vNpUNhov3XQTU5sSbKSkks5r7L6JgaJpZM4NUBSb .

billmaimone avatar Jun 07 '17 16:06 billmaimone