compiler terminated with showing "killed."

I’m trying to compile yolov8x, then after “Building HEF…” is printed, compiler terminated with showing only a message of “killed.”

Could anybody have idea what caused the issue?

A size of quantized HAR model is 1.2GB, is it too big?

RAM size of my WSL2 ubuntu is 32GB.

TIA

Hey @koch_hiraga ,

The compilation termination occurs because the HEF build process requires significantly more memory than the original model size. While your 1.2GB quantized HAR file is within acceptable parameters, the compilation process (including graph transformations, packing optimizations, and temporary buffer allocation) can require several times the model size in RAM. Large backbone models like YOLOv8x can demand tens of gigabytes during peak compilation phases.

WSL2 environments are particularly susceptible to this issue as they operate with limited memory allocation from the host system and often lack adequate swap space configuration.

Diagnostic Steps

Execute the following command in a separate terminal during compilation:

dmesg | tail -n 100 | grep -i -E "killed process|out of memory"

Track peak memory consumption using:

/usr/bin/time -v hailo <your_arguments> 2>&1 | tee compile.log

I would try the following

  1. Configure WSL2 memory limits (48GB+ memory, 64GB+ swap)
  2. Add Ubuntu swapfile (64GB minimum)
  3. Set appropriate TMPDIR with sufficient disk space

If this doesnt solve youre issue please provide the log from the compilation and the dmseg log !

@omria
Thank you.

It has been succeeded with RAM of 48GB.

1 Like