Add Apple GPU backend for count_overlaps#152
Open
mwiewior wants to merge 6 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apple-gpufeature usingobjc2-metalandbio.count_overlaps_backend = auto|cpu|apple_gpucount_overlapsbackend with CPU fallback, projection pushdown, right-side column pruning, and GPU batch coalescingBenchmarks
8-7 dataset from
/tmp/polars-bio-bench/databio(ex-rnavsex-anno), release mode, Apple M3 Max, 1 thread:611.363 ms402.442 msn_rows=1194285,total_overlaps=307298602Timing breakdown after final optimization:
51-55 ms282-303 ms30-32 msVerification
cargo test -p datafusion-bio-function-ranges --features apple-gpucargo test -p datafusion-bio-function-ranges --features apple-gpu test_count_overlaps_apple_gpu_matches_cpu_fixtures -- --ignored --nocapturecargo run -p datafusion-bio-function-ranges --release --features apple-gpu --example count_overlaps_bench -- --backend auto --threads 1 --repeats 5 --warmups 1 --timings --left /tmp/polars-bio-bench/databio/ex-rna --right /tmp/polars-bio-bench/databio/ex-anno