Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brakmic/hello_component_hpx
A simple component running in HPX
https://github.com/brakmic/hello_component_hpx
cpp hpx hpx-library
Last synced: 16 days ago
JSON representation
A simple component running in HPX
- Host: GitHub
- URL: https://github.com/brakmic/hello_component_hpx
- Owner: brakmic
- License: mit
- Created: 2024-09-22T15:15:34.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-22T20:19:56.000Z (3 months ago)
- Last Synced: 2024-12-17T03:50:39.696Z (17 days ago)
- Topics: cpp, hpx, hpx-library
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HPX HelloWorld Component
This project demonstrates how to create a basic **HPX component** that returns the number 42 when called.
The project is structured as follows:- **Component**: The core logic for returning a number is encapsulated inside an HPX component.
- **Action**: HPX actions are used to expose component functionality for asynchronous execution across distributed nodes.
- **Main**: The entry point where we create the component, call it, and print the result.
## Getting Started### Prerequisites
- Install HPX following the [HPX installation guide](https://hpx-docs.stellar-group.org/latest/html/quickstart.html#).
- Install [Boost](https://www.boost.org/).
- Make sure you have CMake 3.19+ and a C++ compiler that supports C++23 (or change the CMake settings).### Project Structure
```text
.
├── CMakeLists.txt # Build configuration
├── include # Header files
│ └── hello_component.hpp # HPX component header
├── src # Source files
│ ├── hello_component.cpp # HPX component implementation
│ └── main.cpp # Entry point of the application
├── LICENSE # MIT License
└── README # This file
```### Building the Project
To build the project:
```bash
mkdir build
cd build
cmake ..
make
```### Running the Program
To run the `fibonacci_demo_hpx` program:
```bash
./hello_component_hpx
```It will output the number `42` returned by the component.
### LICENSE
[MIT](./LICENSE)