Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sample JNI API #9728

Merged
merged 7 commits into from
Dec 2, 2021
Merged

Add sample JNI API #9728

merged 7 commits into from
Dec 2, 2021

Conversation

res-life
Copy link
Contributor

@res-life res-life commented Nov 19, 2021

Add sample JNI

Signed-off-by: Chong Gao res_life@163.com

@res-life res-life requested a review from a team as a code owner November 19, 2021 02:40
@GPUtester
Copy link
Collaborator

Can one of the admins verify this patch?

@github-actions github-actions bot added the Java Affects Java cuDF API. label Nov 19, 2021
Signed-off-by: Chong Gao <res_life@163.com>
@res-life res-life changed the title Sample perf Add sample JNI Nov 19, 2021
Signed-off-by: Chong Gao <res_life@163.com>
@@ -2743,6 +2745,19 @@ public static Table fromPackedTable(ByteBuffer metadata, DeviceMemoryBuffer data
return result;
}

/**
* Gather `n` samples from table randomly
* The output is not same with CPU Sample exec, but this is faster.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* The output is not same with CPU Sample exec, but this is faster.
* The output is not the same as what CPU Sample Exec produces, but this is faster.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@firestarman firestarman added the non-breaking Non-breaking change label Nov 19, 2021
Signed-off-by: Chong Gao <res_life@163.com>
java/src/main/java/ai/rapids/cudf/Table.java Outdated Show resolved Hide resolved
java/src/test/java/ai/rapids/cudf/TableTest.java Outdated Show resolved Hide resolved
@ttnghia ttnghia added the Spark Functionality that helps Spark RAPIDS label Nov 19, 2021
Chong Gao added 2 commits November 22, 2021 19:45
Signed-off-by: Chong Gao <res_life@163.com>
@res-life
Copy link
Contributor Author

res-life commented Dec 1, 2021

@revans2 Please help to review.

@revans2
Copy link
Contributor

revans2 commented Dec 1, 2021

ok to test

1 similar comment
@ajschmidt8
Copy link
Member

ok to test

Signed-off-by: Chong Gao <res_life@163.com>
@res-life
Copy link
Contributor Author

res-life commented Dec 2, 2021

ok to test

@codecov
Copy link

codecov bot commented Dec 2, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.02@079af45). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-22.02    #9728   +/-   ##
===============================================
  Coverage                ?   10.47%           
===============================================
  Files                   ?      119           
  Lines                   ?    20368           
  Branches                ?        0           
===============================================
  Hits                    ?     2133           
  Misses                  ?    18235           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 079af45...6282f4b. Read the comment docs.

@revans2 revans2 changed the title Add sample JNI Add sample JNI API Dec 2, 2021
@revans2
Copy link
Contributor

revans2 commented Dec 2, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 582cc6e into rapidsai:branch-22.02 Dec 2, 2021
@res-life res-life deleted the sample_perf branch December 2, 2021 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Java Affects Java cuDF API. non-breaking Non-breaking change Spark Functionality that helps Spark RAPIDS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants