singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] XJDKC commented on a change in pull request #716: SINGA-510 Distributed Training Time Profiling
Date Sat, 06 Jun 2020 15:15:58 GMT

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:
users@infra.apache.org



Mime
View raw message