Skip to content

Commit

Permalink
Merge pull request #154 from sguada/leveldb_max_open_files
Browse files Browse the repository at this point in the history
Set leveldb options.max_open_files = 100 and Fix #13 and #38
  • Loading branch information
shelhamer committed Feb 26, 2014
2 parents cc9582f + 8d458b0 commit 595849e
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 595849e

Please sign in to comment.