Commit 4ad979c4 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

fixed benchmark issue

parent b63c5aa1
......@@ -68,7 +68,7 @@ class provider {
static provider* create(margo_instance_id mid,
uint16_t provider_id = 0,
ABT_pool pool = ABT_POOL_NULL,
const std::string& config = "",
const std::string& config = "{}",
abt_io_instance_id abtio = ABT_IO_INSTANCE_NULL,
void* remi_provider = NULL,
void* remi_client = NULL)
......
......@@ -585,7 +585,8 @@ static void run_server(MPI_Comm comm, Json::Value& config) {
// initialize database
auto& target_config = server_config["target"];
std::string tgt_path = target_config["path"].asString();
provider->attach_target(tgt_path);
size_t tgt_size = target_config["size"].asUInt64();
provider->create_target(tgt_path, tgt_size);
// notify clients that the database is ready
MPI_Barrier(MPI_COMM_WORLD);
// wait for finalize
......
......@@ -5,10 +5,11 @@
"use-progress-thread" : false,
"rpc-thread-count" : 0,
"target" : {
"path" : "/dev/shm/myTarget"
"path" : "/dev/shm/myTarget",
"size" : 104857600
},
"provider-config" : {
"pipeline_enabled" : "0"
"pipeline_enabled" : "0"
}
},
"benchmarks" : [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment