Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] add first PoC of an IOH service #116

Merged
merged 4 commits into from
Feb 16, 2022

Conversation

jdreo
Copy link
Contributor

@jdreo jdreo commented Jan 2, 2022

This adds a problem server that takes JSON queries through named pipes.
The server host an Analyzer logger and is able to serve objective function computation on existing problems.
The use of named pipes allows for very simple code, without managing states or network sockets (which can/will be managed by another service).
The implementation comes with a client example implemented in Python.

The JSON schemas of the protocol messages are provided.
Messages can be checked against the schemas via a side tool taking the form of a SingularityCE container (in order to avoid adding optional dependencies to IOH).

The commit adds two single-header sub-modules:

jdreo added 3 commits January 2, 2022 15:56
This adds a problem server that takes JSON queries through named pipes.
The server host an Analyzer logger and is able to serve objective function computation on existing problems.
The use of named pipes allows for very simple code, without managing states or network sockets (which can/will be managed by another service).
The implementation comes with a client example implemented in Python.

The JSON schemas of the protocol messages are provided.
Messages can be checked against the schemas via a side tool taking the form of a SingularityCE container (in order to avoid adding optional dependencies to IOH).

The commit adds two single-header sub-modules:
- cxxopts (for CLI argument management)
- Nlohmann's json parsing.
CMakeLists.txt Outdated
option(ENABLE_PYTHON_PROBLEMS "Enable the ability to call external Python modules as if they were an IOH problem" OFF)

if(MSVC)
set(ENABLE_PYTHON_PROBLEMS FALSE) # The call-problem-from-python interface is broken on windows
set(erBLE_PYTHON_PROBLEMS FALSE) # The call-problem-from-python interface is broken on windows
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely a typo.

@jacobdenobel jacobdenobel merged commit b5c76d9 into IOHprofiler:dev Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants