Added env var to set target.lst
Change-Id: Ie6aefba6ef79360e65d4a64a6be1ec50e59b5741
[ROCm/rocminfo commit: 12736c6fd8]
Этот коммит содержится в:
коммит произвёл
Chris Freehill
родитель
8eeb8d3e5f
Коммит
3960cc7d49
@@ -55,9 +55,11 @@ def getGCNISA(line, match_from_beginning = False):
|
||||
def readFromTargetLstFile():
|
||||
target_list = []
|
||||
|
||||
# locate target.lst which should be placed at the same directory with this
|
||||
# script
|
||||
target_lst_path = os.path.join(CWD, "target.lst")
|
||||
# locate target.lst using environment variable or
|
||||
# it should be placed at the same directory with this script
|
||||
target_lst_path = os.environ.get("ROCM_TARGET_LST");
|
||||
if target_lst_path == None:
|
||||
target_lst_path = os.path.join(CWD, "target.lst")
|
||||
if os.path.isfile(target_lst_path):
|
||||
target_lst_file = open(target_lst_path, 'r')
|
||||
for line in target_lst_file:
|
||||
|
||||
Ссылка в новой задаче
Block a user