Skip to content

Commit

Permalink
Merge pull request BVLC#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 BVLC#13 and BVLC#38
  • Loading branch information
shelhamer committed Feb 26, 2014
2 parents d7cb482 + f3d4d0b commit 3f271f2
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 3f271f2

Please sign in to comment.