2021-04-13 10:36:46 +00:00
|
|
|
def idxd_scan_accel_engine(client, config_number=None, config_kernel_mode=None):
|
2020-04-07 16:42:02 +00:00
|
|
|
"""Scan and enable IDXD accel engine.
|
|
|
|
|
|
|
|
Args:
|
|
|
|
config_number: Pre-defined configuration number, see docs.
|
2021-04-13 10:36:46 +00:00
|
|
|
config_kernel_mode: Use kernel IDXD driver. (optional)
|
2020-04-07 16:42:02 +00:00
|
|
|
"""
|
2021-04-13 10:36:46 +00:00
|
|
|
params = {}
|
|
|
|
|
|
|
|
params['config_number'] = config_number
|
|
|
|
if config_kernel_mode is not None:
|
|
|
|
params['config_kernel_mode'] = config_kernel_mode
|
2020-04-07 16:42:02 +00:00
|
|
|
return client.call('idxd_scan_accel_engine', params)
|