Add non_default_stream parameter to cuda_verify (#4079)

This commit is contained in:
sakridge 2019-04-30 13:34:46 -07:00 committed by GitHub
parent 1a259d4a3f
commit 408bdbce7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,7 @@ extern "C" {
signature_offsets: *const u32,
signed_message_offsets: *const u32,
out: *mut u8, //combined length of all the items in vecs
use_non_default_stream: u8,
) -> u32;
pub fn chacha_cbc_encrypt_many_sample(
@ -245,6 +246,7 @@ pub fn ed25519_verify(batches: &[Packets]) -> Vec<Vec<u8>> {
trace!("elem len: {}", elems.len() as u32);
trace!("packet sizeof: {}", size_of::<Packet>() as u32);
trace!("len offset: {}", PACKET_DATA_SIZE as u32);
const USE_NON_DEFAULT_STREAM: u8 = 1;
unsafe {
let res = ed25519_verify_many(
elems.as_ptr(),
@ -257,6 +259,7 @@ pub fn ed25519_verify(batches: &[Packets]) -> Vec<Vec<u8>> {
signature_offsets.as_ptr(),
msg_start_offsets.as_ptr(),
out.as_mut_ptr(),
USE_NON_DEFAULT_STREAM,
);
if res != 0 {
trace!("RETURN!!!: {}", res);

View File

@ -16,7 +16,7 @@ mkdir -p target/perf-libs
cd target/perf-libs
(
set -x
curl https://solana-perf.s3.amazonaws.com/v0.11.1/x86_64-unknown-linux-gnu/solana-perf.tgz | tar zxvf -
curl https://solana-perf.s3.amazonaws.com/v0.12.0/x86_64-unknown-linux-gnu/solana-perf.tgz | tar zxvf -
)
if [[ -r solana-perf-CUDA_HOME.txt ]]; then