File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 3434- intel
3535- pintool
3636- pin
37+ - tool
3738tests :
3839 run_inputs :
3940 - {}
Original file line number Diff line number Diff line change 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 }
33echo " ${pintool_bin} -version"
44
55${pintool_bin} -version > tmp-ver.out
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments