-
Notifications
You must be signed in to change notification settings - Fork 915
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
Add sample JNI API #9728
Conversation
Can one of the admins verify this patch? |
Signed-off-by: Chong Gao <[email protected]>
cdc5952
to
3b37f06
Compare
Signed-off-by: Chong Gao <[email protected]>
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Signed-off-by: Chong Gao <[email protected]>
Signed-off-by: Chong Gao <[email protected]>
@revans2 Please help to review. |
ok to test |
1 similar comment
ok to test |
Signed-off-by: Chong Gao <[email protected]>
ok to test |
Codecov Report
@@ 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.
|
@gpucibot merge |
Add sample JNI
Signed-off-by: Chong Gao [email protected]