#NEWLINE# def get_sweep_workload_specs( self , old_specs , sweep_spec , context ) : #NEWLINE# #INDENT# new_specs = [ ] #NEWLINE# for old_spec in old_specs : #NEWLINE# #INDENT# for freq in sweep_spec [ 'frequencies' ] : #NEWLINE# #INDENT# spec = old_spec . copy ( ) #NEWLINE# if ( 'runtime_params' in sweep_spec ) : #NEWLINE# #INDENT# spec . runtime_parameters = merge_dicts ( spec . runtime_parameters , sweep_spec [ 'runtime_params' ] , dict_type = OrderedDict ) #NEWLINE# #UNINDENT# if ( 'workload_params' in freq ) : #NEWLINE# #INDENT# spec . workload_parameters = merge_dicts ( spec . workload_parameters , sweep_spec [ 'workload_params' ] , dict_type = OrderedDict ) #NEWLINE# #UNINDENT# spec . runtime_parameters [ '{}_governor' . format ( sweep_spec [ 'cluster' ] ) ] = 'userspace' #NEWLINE# spec . runtime_parameters [ '{}_frequency' . format ( sweep_spec [ 'cluster' ] ) ] = freq #NEWLINE# spec . id = '{}_{}_{}' . format ( spec . id , sweep_spec [ 'label' ] , freq ) #NEWLINE# spec . classifiers [ 'core' ] = sweep_spec [ 'cluster' ] #NEWLINE# spec . classifiers [ 'freq' ] = freq #NEWLINE# spec . load ( self . device , context . config . ext_loader ) #NEWLINE# spec . workload . init_resources ( context ) #NEWLINE# spec . workload . validate ( ) #NEWLINE# new_specs . append ( spec ) #NEWLINE# #UNINDENT# #UNINDENT# return new_specs