Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HEPnOS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
HEP
HEPnOS
Commits
05c68ac9
Commit
05c68ac9
authored
Jun 15, 2018
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified usage message
parent
1f076e75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
36 deletions
+3
-36
bin/hepnos-daemon.cpp
bin/hepnos-daemon.cpp
+3
-3
src/service/HEPnOSService.cpp
src/service/HEPnOSService.cpp
+0
-33
No files found.
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