anirudh2290 commented on a change in pull request #14397: Add exception handling support for waitall URL: https://github.com/apache/incubator-mxnet/pull/14397#discussion_r267557502
########## File path: src/resource.cc ########## @@ -190,12 +190,14 @@ class ResourceManagerImpl : public ResourceManager { cpu_rand_->Seed(seed); cpu_parallel_rand_->Seed(seed); #if MXNET_USE_CUDA - gpu_rand_.Get(ctx.dev_id, [ctx, seed, this]() { - return new ResourceRandom<gpu>(ctx, seed); - })->Seed(seed); - gpu_parallel_rand_.Get(ctx.dev_id, [ctx, seed, this]() { - return new ResourceParallelRandom<gpu>(ctx, gpu_native_rand_copy_, seed); - })->Seed(seed); + if (ctx != Context::CPU()) { Review comment: yes this is a bug. I have changed the check for GPU context. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services