Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
HEP
HEPnOS
Commits
05c68ac9
Commit
05c68ac9
authored
Jun 15, 2018
by
Matthieu Dorier
Browse files
modified usage message
parent
1f076e75
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/hepnos-daemon.cpp
View file @
05c68ac9
...
...
@@ -19,9 +19,9 @@
void
usage
(
void
)
{
fprintf
(
stderr
,
"Usage: hepnos-daemon <
addr> <config
>
\n
"
);
fprintf
(
stderr
,
" <config> path to the YAML file containing the service configuration
\n
"
);
fprintf
(
stderr
,
" <connection> path to the YAML file to generate for clients
\n
"
);
fprintf
(
stderr
,
"Usage: hepnos-daemon <
config-file> <connection-file
>
\n
"
);
fprintf
(
stderr
,
" <config
-file
> path to the YAML file containing the service configuration
\n
"
);
fprintf
(
stderr
,
" <connection
-file
> path to the YAML file to generate for clients
\n
"
);
exit
(
-
1
);
}
...
...
src/service/HEPnOSService.cpp
View file @
05c68ac9
...
...
@@ -18,8 +18,6 @@
#define ASSERT(__cond, __msg, ...) { if(!(__cond)) { fprintf(stderr, "[%s:%d] " __msg, __FILE__, __LINE__, __VA_ARGS__); exit(-1); } }
//static void generate_connection_file(MPI_Comm comm, const char* addr, const char* filename);
void
hepnos_run_service
(
MPI_Comm
comm
,
const
char
*
config_file
,
const
char
*
connection_file
)
{
margo_instance_id
mid
;
...
...
@@ -105,34 +103,3 @@ void hepnos_run_service(MPI_Comm comm, const char* config_file, const char* conn
margo_wait_for_finalize
(
mid
);
}
/*
static void generate_connection_file(MPI_Comm comm, const char* addr, const char* filename)
{
int rank, size;
MPI_Comm_rank(comm, &rank);
MPI_Comm_size(comm, &size);
unsigned j=0;
while(addr[j] != '\0' && addr[j] != ':') j++;
std::string proto(addr, j);
std::vector<char> buf(128*size);
MPI_Gather(addr, 128, MPI_BYTE, buf.data(), 128, MPI_BYTE, 0, comm);
if(rank != 0) return;
std::vector<std::string> addresses;
for(unsigned i=0; i < size; i++) {
addresses.emplace_back(&buf[128*i]);
}
YAML::Node config;
config["hepnos"]["client"]["protocol"] = proto;
for(auto& s : addresses)
config["hepnos"]["providers"]["sdskv"][s] = 1;
std::ofstream fout(filename);
fout << config;
}
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment