Xilinx / SDAccel_Examples

SDAccel Examples
Other
356 stars 209 forks source link

"no HwEm HAL handle" error when executing hardware emulation #22

Closed troore closed 7 years ago

troore commented 7 years ago

Hi,

When I compile and run gemm in hw_emu mode, I encounter a crash error in clCreateProgramWithBinary:

ERROR: device::load_binary binary target=HwEm, no HwEm HAL handle Error: Failed to create compute program from binary -44!

What causes this error? Thanks.

troore

akasat commented 7 years ago

Hi,

This could happen In following cases

  1. hw_em driver is not present at /data/emulation/hw_em/generic_pcie/driver/ location
  2. hw_em driver is not loaded properly by runtime

Can you confirm that your installation is fine? Are you able to run SW emulation.

troore commented 7 years ago

@akasat Thanks for your help! I've found the reason. That is very simple, I forgot to turn on the XCL_EMULATION_MODE. But I still found the reason according to your advice as the emconfigutil cannot change clGetDeviceInfo for device name when running.