Skip to content

Commit

Permalink
replacing gds_stream_post_poll_dword with gds_prepare_wait_value32+gd…
Browse files Browse the repository at this point in the history
…s_stream_post_descriptors in gds_poll_lat
  • Loading branch information
drossetti committed Jun 20, 2017
1 parent 13b57f1 commit 7adcf6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/gds_poll_lat.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ int main(int argc, char *argv[])
for (i=0; i<n_bg_streams; ++i) {
CUCHECK(cuStreamCreate(&bg_streams[i], 0));
//gpu_post_poll_dword_on_stream(str[i], h_bg_buf+i, 1, GDS_WAIT_COND_GEQ, GDS_MEMORY_HOST);
gds_stream_post_poll_dword(bg_streams[i], h_bg_buf+i, 1, GDS_WAIT_COND_GEQ, GDS_MEMORY_HOST);
//GDSCHECK(gds_stream_post_poll_dword(bg_streams[i], h_bg_buf+i, 1, GDS_WAIT_COND_GEQ, GDS_MEMORY_HOST));
gds_descriptor_t desc;
desc.tag = GDS_TAG_WAIT_VALUE32;
GDSCHECK(gds_prepare_wait_value32(&desc.wait32, h_bg_buf+i, 1, GDS_WAIT_COND_GEQ, GDS_MEMORY_HOST));
GDSCHECK(gds_stream_post_descriptors(bg_streams[i], 1, &desc, 0));
}
}

Expand Down

0 comments on commit 7adcf6d

Please sign in to comment.