intel / QATzip

Compression Library accelerated by Intel® QuickAssist Technology
https://developer.intel.com/quickassist
Other
140 stars 51 forks source link

Software fallback prints excessively #113

Open bryanzhang-bytedance opened 8 months ago

bryanzhang-bytedance commented 8 months ago

When using software fallback, it seems that the qzInit call in qzCompress results in the following print, or something similar, every time qzCompress is called:

Error no hardware, switch to SW if permitted
g_process.qz_init_status = QZ_NO_HW

Can a change be made to only print once whenever the hardware status changes? That is, print the first time it looks like hardware is down, and keep probing silently but only print again when the hardware comes back up?

Thanks.