I have been struggling with the same issues for the past few days. How are you installing into WSL, are you using Docker or direct installation via the wheel?
I have been trying to install directly using the wheel and I have come to the conclusion that DataflowCompiler 3.32.0 appears to not work at all in WSL even CPU only. After trying many configurations and still getting errors I have rolled back to 3.31.0.
I believe I have a working CPU only install of Dataflow Compiler in WSL from the following:
I think Hailo have said that GPU is not working under WSL, but I do not know if that applies only to the latest release (which seems to not work regardless) or if previous releases had the same limitation.
After a bit more digging I think my statement that 3.32.0 has problems may be incorrect. I have also now run into a similar issue with 3.31.0 as well. I don’t fully understand the problem yet but I think my issues relate to this bug in TensorFlow
My guess is that since GPU support is broken for Dataflow Compiler in WSL which is causing it to fall back to CPU only and then hitting the above bug and causing a crash. I can replicate my issues using Tensorflow only so the issue doesnt appear to be with Dataflow Compiler itself but with the overall installed environment in WSL.
Just to update my findings, I did manage get a working compiler under WSL2 by rolling back to Nvidia Graphics Driver 572.83 and using dataflow_compiler_3.31.0
This is CPU only using “CUDA_VISIBLE_DEVICES”=“” but can do QAT although rather slowly as expected.
3.32.0 still throws a bunch of errors on my QAT training scripts but thats a separate issue that doesnt seem related to WSL.
I’m a bit confused after reviewing the information from the link, It states that GPU utilization in WSL is supported when using DFC .whl file. However, it also mentions that GPU support is not available when using Docker Suite.
Could you please help clarify the following points?
hailo_dataflow_compiler-3.30.0-py3-none-linux_x86_64.whlPython wheel file – If installed within WSL, will it be able to utilize the GPU?
Docker Suite – When running in WSL, does it support GPU acceleration?
My statement above stands. Support for Hailo means that we develop a feature, document it, and validate it. Whether someone with enough experience and determination can get it working in other environments, I cannot say. There are many smart users in our community, but sometimes fundamental issues prevent a feature from working.
WSL2 support has been developed to allow 3rd party software available only on Windows to use the Hailo Dataflow Compiler under the hood with the known limitations.
Unfortunately, we cannot provide assistance when problems occur under WSL2. I and my colleagues from the customer success team run the tools natively on Ubuntu, and we recommend you do the same so that we can support you effectively when issues arise.
We have added a statement in the Hailo Dataflow Compiler User Guide version 5.x. I asked my colleagues to also add it to the Hailo-8 version 3.x.
I understand your advice to use it natively @KlausK, but I’m in a situation where I can’t multi-boot my PC. Based on this statement, the limitations mean it doesn’t support GPU for the optimization process?