def _wload_perf_bench(self, wl_idx, wlspec, cpus): conf = wlspec['conf'] self._log.debug('Configuring perf_message...') if conf['class'] == 'messaging': perf_bench = wlgen.PerfMessaging(self.target, wl_idx) perf_bench.conf(**conf['params']) return perf_bench if conf['class'] == 'pipe': perf_bench = wlgen.PerfPipe(self.target, wl_idx) perf_bench.conf(**conf['params']) return perf_bench raise ValueError('unsupported "class" value for [{}] ' 'perf bench workload specification'.format(wl_idx))
def wload_perf_bench(cls, wl_idx, wlspec, cpus): conf = wlspec['conf'] logging.debug(r'%14s - Configuring perf_message...', 'PerfMessage') if conf['class'] == 'messaging': perf_bench = wlgen.PerfMessaging(cls.env.target, wl_idx) perf_bench.conf(**conf['params']) return perf_bench if conf['class'] == 'pipe': perf_bench = wlgen.PerfPipe(cls.env.target, wl_idx) perf_bench.conf(**conf['params']) return perf_bench raise ValueError('Configuration error - '\ 'unsupported \'class\' value for [{}] '\ 'perf bench workload specification'\ .format(wl_idx))