hmon_files won't create when Multi Process Service is True

Hi

Trying to get utilization information, but doesn’t get information when multi process service is set to true

I looked hailortcli monitor code and found that getting Hailo utilization and model information from /tmp/hmon_files

I already set variable HAILO_MONITOR to 1 like below image
image

and my code looks like this

Expected<std::unique_ptr<VDevice>> create_vdevice()
{
    hailo_vdevice_params_t params;
    auto status = hailo_init_vdevice_params(&params);
    if (HAILO_SUCCESS != status) {
        std::cerr << "Failed init vdevice_params, status = " << status << std::endl;
        return make_unexpected(status);
    }
    params.device_count = DEVICE_COUNT;
    params.multi_process_service = true;
    params.group_id = "SHARED";

    return VDevice::create(params);
}

But it seems that executing with multi_process_service to true not make tmp file in /tmp/hmon_files

Should I need to set more variables?

I used multi_process_example.cpp for my base code.

hardware Info:

  • raspberry pi cm5
  • Hailo8L

Hi @donghyun_ko
Please see A Comprehensive Guide to Building a Face Recognition System - Guides - Hailo Community for a discussion on this.

Briefly, you need to do the following:
Setting environment variables when working with HailoRT service
The environment variables for HailoRT service are defined in the file /etc/default/hailort_service:
To change an environment variable value, do the following:

  1. Change the desired environment variable in /etc/default/hailort_service
  2. Reload systemd unit files by running: sudo systemctl daemon-reload
  3. Enable and start service: sudo systemctl enable --now hailort.service

Hope this helps.