XJDKC commented on a change in pull request #716:
URL: https://github.com/apache/singa/pull/716#discussion_r436276062



##########
File path: src/io/communicator.cc
##########
@@ -134,7 +131,6 @@ void Communicator::sparsInit() {
   CUDA_CHECK(cudaMalloc(&xInd, (int)(sizeof(int) * maxSize)));
   CUDA_CHECK(cudaMalloc(&xVal, (int)(sizeof(float) * maxSize)));
   CUSPARSE_CHECK(cusparseCreate(&cusparse_handle));
-  CUSPARSE_CHECK(cusparseSetStream(cusparse_handle, c2));

Review comment:
       I see, you moved this line to the position before each call to sparse. 
https://github.com/apache/singa/blob/6021e705106677d6f4209e3c0f8386d01602ca1b/src/io/communicator.cc#L626




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to