You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/02/15 06:42:52 UTC

[GitHub] yzhliu commented on issue #13574: Replaced rand_r with std:: random generation

yzhliu commented on issue #13574: Replaced rand_r with std:: random generation
URL: https://github.com/apache/incubator-mxnet/pull/13574#issuecomment-463926812
 
 
   @lebeg Can we port it to https://github.com/apache/incubator-mxnet/blob/master/include/mxnet/random_generator.h ? It is designed exactly for non-threadsafe rand number generators (in which cuda device random api is not thread-safe). I guess this is what @szha meant.
   
   Ref:
   https://github.com/apache/incubator-mxnet/blob/master/include/mxnet/random_generator.h
   https://github.com/apache/incubator-mxnet/blob/master/src/resource.cc#L298
   https://github.com/apache/incubator-mxnet/blob/master/src/operator/random/sampler.h

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services