summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 22da2e0)
raw | patch | inline | side by side (parent: 22da2e0)
author | Yangqing Jia <jiayq84@gmail.com> | |
Wed, 30 Oct 2013 21:30:27 +0000 (14:30 -0700) | ||
committer | Yangqing Jia <jiayq84@gmail.com> | |
Wed, 30 Oct 2013 21:30:27 +0000 (14:30 -0700) |
src/caffe/common.cpp | patch | blob | history |
diff --git a/src/caffe/common.cpp b/src/caffe/common.cpp
index 46d21c9c390d460029e43663f0f0284eecfb1914..aecdc6e12666345606eb3e011cf6547f639ec385 100644 (file)
--- a/src/caffe/common.cpp
+++ b/src/caffe/common.cpp
// Try to create a curand handler.
if (curandCreateGenerator(&curand_generator_, CURAND_RNG_PSEUDO_DEFAULT)
!= CURAND_STATUS_SUCCESS ||
- curandSetPseudoRandomGeneratorSeed(curand_generator_, 1701ULL)
+ curandSetPseudoRandomGeneratorSeed(curand_generator_, time(NULL))
!= CURAND_STATUS_SUCCESS) {
LOG(ERROR) << "Cannot create Curand generator. Curand won't be available.";
}
// Try to create a vsl stream. This should almost always work, but we will
// check it anyway.
- if (vslNewStream(&vsl_stream_, VSL_BRNG_MT19937, 1701) != VSL_STATUS_OK) {
+ if (vslNewStream(&vsl_stream_, VSL_BRNG_MT19937, time(NULL)) != VSL_STATUS_OK) {
LOG(ERROR) << "Cannot create vsl stream. VSL random number generator "
<< "won't be available.";
}