summaryrefslogtreecommitdiff
path: root/src/caffe/common.cpp
diff options
context:
space:
mode:
authorYangqing Jia <jiayq84@gmail.com>2013-10-24 22:36:00 -0700
committerYangqing Jia <jiayq84@gmail.com>2013-10-24 22:36:00 -0700
commit22f45e67ab9e9fc9bbc3f3f5bde3841e58ec3c19 (patch)
tree59a7445cd9db53e4c17448b69e03bfbf4eeda474 /src/caffe/common.cpp
parent8cf9e1b6427457be903cd71dd6a606548ef3605d (diff)
downloadcaffeonacl-22f45e67ab9e9fc9bbc3f3f5bde3841e58ec3c19.tar.gz
caffeonacl-22f45e67ab9e9fc9bbc3f3f5bde3841e58ec3c19.tar.bz2
caffeonacl-22f45e67ab9e9fc9bbc3f3f5bde3841e58ec3c19.zip
pushing missing checkout
Diffstat (limited to 'src/caffe/common.cpp')
-rw-r--r--src/caffe/common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/caffe/common.cpp b/src/caffe/common.cpp
index c254d70e..1fce86a2 100644
--- a/src/caffe/common.cpp
+++ b/src/caffe/common.cpp
@@ -36,13 +36,13 @@ Caffe::Caffe()
// Try to create a curand handler.
if (curandCreateGenerator(&curand_generator_, CURAND_RNG_PSEUDO_DEFAULT)
!= CURAND_STATUS_SUCCESS ||
- curandSetPseudoRandomGeneratorSeed(curand_generator_, time(NULL))
+ curandSetPseudoRandomGeneratorSeed(curand_generator_, 1701ULL)
!= 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, time(NULL)) != VSL_STATUS_OK) {
+ if (vslNewStream(&vsl_stream_, VSL_BRNG_MT19937, 1701) != VSL_STATUS_OK) {
LOG(ERROR) << "Cannot create vsl stream. VSL random number generator "
<< "won't be available.";
}