Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Update test_op.h
Browse files Browse the repository at this point in the history
Change 0 to opContext_.run_ctx.ctx.dev_id
  • Loading branch information
wkcn authored Mar 1, 2019
1 parent d4ecd4a commit 7bdd4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cpp/include/test_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct GPUStreamScope {
: opContext_(*opContext) {
CHECK_EQ(opContext_.run_ctx.stream == nullptr, true)
<< "Invalid runtime context stream state";
opContext_.run_ctx.stream = mshadow::NewStream<gpu>(true, true, 0);
opContext_.run_ctx.stream = mshadow::NewStream<gpu>(true, true, opContext_.run_ctx.ctx.dev_id);
CHECK_EQ(opContext_.run_ctx.stream != nullptr, true)
<< "Unable to allocate a GPU stream";
}
Expand Down

0 comments on commit 7bdd4d4

Please sign in to comment.