Skip to content

Commit 8201223

Browse files
committed
Fixes for Intel SDE and PIN tools
1 parent f6d2a2b commit 8201223

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

script/get-intel-pin-tool/customize.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def preprocess(i):
2222
if 'MLC_INTEL_PINTOOL_BIN_WITH_PATH' not in env:
2323
if env.get('MLC_INTEL_PINTOOL_DIR_PATH', '') != '':
2424
pintool_path = env['MLC_INTEL_PINTOOL_DIR_PATH']
25-
if os.path.exists(os.path.join(pintool_path, 'pin')):
25+
if os.path.exists(os.path.join(pintool_path, exe)):
2626
env['MLC_TMP_PATH'] = pintool_path
2727

2828
r = i['automation'].find_artifact({'file_name': exe,
@@ -45,6 +45,7 @@ def detect_version(i):
4545
'env_key': 'MLC_INTEL_PINTOOL_VERSION',
4646
'which_env': i['env']})
4747
if r['return'] > 0:
48+
print(r)
4849
return r
4950
version = r['version']
5051

script/get-intel-pin-tool/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ tags:
3434
- intel
3535
- pintool
3636
- pin
37+
- tool
3738
tests:
3839
run_inputs:
3940
- {}

script/get-intel-pin-tool/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
pintool_bin=${MLC_INTEL_PINTOOL_BIN_WITH_PATH}
2+
pintool_bin=${MLC_INTEL_PINTOOL_BIN_WITH_PATH:-${MLC_INTEL_PINTOOL_DIR_PATH}/pin}
33
echo "${pintool_bin} -version"
44

55
${pintool_bin} -version > tmp-ver.out

script/get-intel-sde-tool/customize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def preprocess(i):
2222
if 'MLC_INTEL_SDE_BIN_WITH_PATH' not in env:
2323
if env.get('MLC_INTEL_SDE_DIR_PATH', '') != '':
2424
sde_path = env['MLC_INTEL_SDE_DIR_PATH']
25-
if os.path.exists(os.path.join(sde_path, 'sde')):
25+
if os.path.exists(os.path.join(sde_path, exe)):
2626
env['MLC_TMP_PATH'] = sde_path
2727

2828
r = i['automation'].find_artifact({'file_name': exe,

0 commit comments

Comments
 (0)