Skip to content

Commit

Permalink
Set leveldb options.max_open_files = 100. Fix BVLC#13 and BVLC#38
Browse files Browse the repository at this point in the history
  • Loading branch information
sguada authored and shelhamer committed Feb 26, 2014
1 parent d7cb482 commit f3d4d0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/caffe/layers/data_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ void DataLayer<Dtype>::SetUp(const vector<Blob<Dtype>*>& bottom,
leveldb::DB* db_temp;
leveldb::Options options;
options.create_if_missing = false;
options.max_open_files = 100;
LOG(INFO) << "Opening leveldb " << this->layer_param_.source();
leveldb::Status status = leveldb::DB::Open(
options, this->layer_param_.source(), &db_temp);
Expand Down

0 comments on commit f3d4d0b

Please sign in to comment.