Skip to content

Conversation

@piotrchodorowski
Copy link

@piotrchodorowski piotrchodorowski commented Dec 29, 2025

Requires local iceoryx2 repository. Adjust path in MODULE.bazel file.
In iceoryx2 repo mass replace in all files crate_index to something else (e.g. crate_index2).

If mw:com build will fail during iceoryx2-ffi step try this workaround:

  1. Build iceoryx2-cxx-static target in iceoryx2 repository
  2. Edit iceoryx2-ffi/c/BUILD.bazel file and change line 38 to cmd = "sleep 10;"
  3. Build mw::com and during 10 second sleep copy iceoryx2.h file from iceoryx2 repository (bazel-bin/iceoryx2-ffi/c/include/iox2/iceoryx2.h) to communication repository (bazel-bin/external/iceoryx2+/iceoryx2-ffi/c/include/iox2/iceoryx2.h)

Example:
build:
bazel build //score/mw/com/example/ipc_bridge:ipc_bridge_cpp
run:
receiver: ipc_bridge_cpp -n 10 -m recv -t 100
sender: ipc_bridge_cpp -n 10 -m send -t 100

Macro benchmark:
build:
client: bazel build //score/mw/com/performance_benchmarks/macro_benchmark:lola_benchmarking_client
service: bazel build //score/mw/com/performance_benchmarks/macro_benchmark:lola_benchmarking_service

run:
lola_benchmarking_client etc/joined_benchmark_config.json etc/mw_com_config.json
lola_benchmarking_service etc/joined_benchmark_config.json etc/mw_com_config.json

Event based reception is not supported.

Contents of config json file should be replaced with e.g.:

{
    "max_num_samples": 10,
    "number_of_clients": 2,
    "asil_level": "B",
    "send_cycle_time_ms": 40,
    "read_cycle_time_ms": 10,
    "service_finder_mode": "POLLING",
    "run_time_limit": {
        "duration": 10,
        "unit": "s"
    }
}

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.

1 participant