Skip to content

Commit

Permalink
adding program static MILEPOST features
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin committed Mar 26, 2016
1 parent 18e8ba9 commit c2b86b3
Show file tree
Hide file tree
Showing 13 changed files with 301 additions and 36 deletions.
1 change: 1 addition & 0 deletions .cm/alias-a-program.static.features
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
92a02f0445148203
1 change: 1 addition & 0 deletions .cm/alias-u-92a02f0445148203
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
program.static.features
76 changes: 40 additions & 36 deletions module/program.static.features/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,41 +105,45 @@ def extract(i):
'skip_info_collection':'yes',
'no_run':'yes'}
r=ck.access(ii)
if r['return']>0: return r

feat=r.get('features',{}).get('program_static_milepost_features',{})

if len(feat)>0:

ddd={}

found=False
ry=ck.access({'action':'load',
'module_uoa':work['self_module_uid'],
'data_uoa':duid})
if ry['return']==0:
ddd=ry['dict']
found=True

feat1=ddd.get('features',{}).get('program_static_milepost_features',{})
rz=ck.merge_dicts({'dict1':feat1, 'dict2':feat})
if rz['return']>0: return rz
feat1=rz['dict1']

if 'features' not in ddd: ddd['features']={}

ddd['features']['program_static_milepost_features']=feat1

ii={}
ii['action']='add'
if found: ii['action']='update'
ii['module_uoa']=work['self_module_uid']
ii['data_uoa']=duoa
ii['data_uid']=duid
ii['repo_uoa']=xtruoa
ii['dict']=ddd
ii['substitute']='yes'
ry=ck.access(ii)
if ry['return']>0: return ry
if r['return']>0:
if o=='con':
ck.out('')
ck.out('CK WARNING: pipeline failed ('+r['error']+')')
ck.out('')
else:
feat=r.get('features',{}).get('program_static_milepost_features',{})

if len(feat)>0:

ddd={}

found=False
ry=ck.access({'action':'load',
'module_uoa':work['self_module_uid'],
'data_uoa':duid})
if ry['return']==0:
ddd=ry['dict']
found=True

feat1=ddd.get('features',{}).get('program_static_milepost_features',{})
rz=ck.merge_dicts({'dict1':feat1, 'dict2':feat})
if rz['return']>0: return rz
feat1=rz['dict1']

if 'features' not in ddd: ddd['features']={}

ddd['features']['program_static_milepost_features']=feat1

ii={}
ii['action']='add'
if found: ii['action']='update'
ii['module_uoa']=work['self_module_uid']
ii['data_uoa']=duoa
ii['data_uid']=duid
ii['repo_uoa']=xtruoa
ii['dict']=ddd
ii['substitute']='yes'
ry=ck.access(ii)
if ry['return']>0: return ry

return {'return':0, 'dict':{'features':feat1}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
794023410cbed8b0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e34164a6a31352e2
1 change: 1 addition & 0 deletions program.static.features/.cm/alias-u-794023410cbed8b0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
demo-codelet-openme-auto-tuning-plugins
1 change: 1 addition & 0 deletions program.static.features/.cm/alias-u-e34164a6a31352e2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tool-print-opencl-devices
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"backup_data_uid": "794023410cbed8b0",
"backup_module_uid": "92a02f0445148203",
"backup_module_uoa": "program.static.features",
"control": {
"author": "cTuning foundation",
"author_email": "[email protected]",
"author_webpage": "http://cTuning.org",
"copyright": "See CK COPYRIGHT.txt for copyright details",
"engine": "CK",
"iso_datetime": "2016-03-25T22:54:35.561731",
"license": "See CK LICENSE.txt for licensing details",
"version": [
"1",
"6",
"14x"
]
},
"data_name": "demo-codelet-openme-auto-tuning-plugins"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"features": {
"program_static_milepost_features": {
"astex_codelet__2": {
"1": 80.0,
"10": 2.0,
"11": 11.0,
"12": 0.0,
"13": 62.0,
"14": 16.0,
"15": 0.0,
"16": 127.0,
"17": 38.0,
"18": 0.0,
"19": 0.0,
"2": 29.0,
"20": 48.0,
"21": 796.0,
"22": 241.0,
"23": 2.0,
"24": 847.0,
"25": 10.859,
"26": 0.807692,
"27": 4.0,
"28": 9.0,
"29": 9.0,
"3": 48.0,
"30": 60.0,
"31": 0.0,
"32": 18.0,
"33": 0.0,
"34": 32.0,
"35": 74.0,
"36": 102.0,
"37": 0.0,
"38": 0.0,
"39": 0.0,
"4": 0.0,
"40": 33.0,
"41": 153.0,
"42": 0.0,
"43": 0.0,
"44": 0.0,
"45": 0.0,
"46": 62.0,
"47": 156.0,
"48": 29.0,
"49": 57.0,
"5": 59.0,
"50": 1908.0,
"51": 0.0,
"52": 309.0,
"53": 0.0,
"54": 55.0,
"55": 0.0,
"56": 0.0,
"57": 49.0,
"58": 1908.0,
"59": 310.0,
"6": 13.0,
"60": 1734.0,
"61": 4447.0,
"62": 14.0,
"63": 43.0839,
"64": 52969.0,
"65": 2282110.0,
"7": 6.0,
"8": 25.0,
"9": 33.0
},
"main": {
"1": 12.0,
"10": 1.0,
"11": 2.0,
"12": 0.0,
"13": 9.0,
"14": 1.0,
"15": 0.0,
"16": 14.0,
"17": 2.0,
"18": 0.0,
"19": 23.0,
"2": 4.0,
"20": 4.0,
"21": 16.0,
"22": 1.0,
"23": 0.0,
"24": 44.0,
"25": 4.4,
"26": 0.8,
"27": 2.0,
"28": 2.0,
"29": 1.0,
"3": 4.0,
"30": 7.0,
"31": 0.0,
"32": 3.0,
"33": 0.0,
"34": 6.0,
"35": 1.0,
"36": 5.0,
"37": 0.0,
"38": 0.0,
"39": 0.0,
"4": 0.0,
"40": 0.0,
"41": 2.0,
"42": 1.0,
"43": 18.0,
"44": 5.0,
"45": 7.0,
"46": 24.0,
"47": 15.0,
"48": 4.0,
"49": 18.0,
"5": 7.0,
"50": 63.0,
"51": 0.0,
"52": 19.0,
"53": 0.0,
"54": 15.0,
"55": 0.0,
"56": 0.0,
"57": 5.0,
"58": 86.0,
"59": 34.0,
"6": 3.0,
"60": 60.0,
"61": 362.0,
"62": 17.0,
"63": 21.5,
"64": 2539.77,
"65": 54605.1,
"7": 0.0,
"8": 3.0,
"9": 2.0
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
20 changes: 20 additions & 0 deletions program.static.features/tool-print-opencl-devices/.cm/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"backup_data_uid": "e34164a6a31352e2",
"backup_module_uid": "92a02f0445148203",
"backup_module_uoa": "program.static.features",
"control": {
"author": "cTuning foundation",
"author_email": "[email protected]",
"author_webpage": "http://cTuning.org",
"copyright": "See CK COPYRIGHT.txt for copyright details",
"engine": "CK",
"iso_datetime": "2016-03-25T22:54:52.106927",
"license": "See CK LICENSE.txt for licensing details",
"version": [
"1",
"6",
"14x"
]
},
"data_name": "tool-print-opencl-devices"
}
73 changes: 73 additions & 0 deletions program.static.features/tool-print-opencl-devices/.cm/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"features": {
"program_static_milepost_features": {
"main": {
"1": 74.0,
"10": 4.0,
"11": 10.0,
"12": 0.0,
"13": 72.0,
"14": 0.0,
"15": 0.0,
"16": 89.0,
"17": 15.0,
"18": 0.0,
"19": 69.0,
"2": 17.0,
"20": 35.0,
"21": 101.0,
"22": 8.0,
"23": 0.0,
"24": 206.0,
"25": 2.86111,
"26": 2.56944,
"27": 1.98919,
"28": 2.0,
"29": 15.0,
"3": 35.0,
"30": 55.0,
"31": 0.0,
"32": 17.0,
"33": 0.0,
"34": 30.0,
"35": 3.0,
"36": 13.0,
"37": 0.0,
"38": 0.0,
"39": 0.0,
"4": 0.0,
"40": 0.0,
"41": 9.0,
"42": 11.0,
"43": 63.0,
"44": 7.0,
"45": 37.0,
"46": 92.0,
"47": 63.0,
"48": 8.0,
"49": 58.0,
"5": 56.0,
"50": 644.0,
"51": 19.0,
"52": 65.0,
"53": 1.0,
"54": 43.0,
"55": 0.0,
"56": 0.0,
"57": 36.0,
"58": 732.0,
"59": 80.0,
"6": 16.0,
"60": 661.0,
"61": 2051.0,
"62": 18.0,
"63": 82.35,
"64": 18398.1,
"65": 1515080.0,
"7": 0.0,
"8": 13.0,
"9": 25.0
}
}
}
}

0 comments on commit c2b86b3

Please sign in to comment.