Skip to content

Commit bbe2390

Browse files
committed
Fix binary variation names
1 parent 5b86681 commit bbe2390

22 files changed

Lines changed: 200 additions & 0 deletions

File tree

script/get-lib-aocl-blis/customize.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ def postprocess(i):
2525
install_path = env.get('MLC_AOCL_BLIS_BINARY_PATH', '')
2626
if not install_path:
2727
return {'return': 1, 'error': 'Binary download path not set'}
28+
# Find the library subdirectory inside the extracted archive
29+
for entry in os.listdir(install_path):
30+
entry_path = os.path.join(install_path, entry)
31+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
32+
install_path = entry_path
33+
break
34+
# Find the library subdirectory inside the extracted archive
35+
for entry in os.listdir(install_path):
36+
entry_path = os.path.join(install_path, entry)
37+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
38+
install_path = entry_path
39+
break
2840
else:
2941
src_path = env.get('MLC_AOCL_BLIS_SRC_PATH', env.get('MLC_GIT_REPO_CHECKOUT_PATH', ''))
3042
env['MLC_AOCL_BLIS_SRC_PATH'] = src_path

script/get-lib-aocl-blis/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
# Skip build for binary download
3+
if [[ "${MLC_AOCL_BINARY_DOWNLOAD}" == "yes" ]]; then
4+
echo "Binary download mode - skipping build"
5+
exit 0
6+
fi
7+
28
if [[ -z ${MLC_AOCL_BLIS_SRC_PATH} ]]; then
39
echo "Git repository not found!"
410
exit 1

script/get-lib-aocl-compression/customize.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ def postprocess(i):
2525
install_path = env.get('MLC_AOCL_COMPRESSION_BINARY_PATH', '')
2626
if not install_path:
2727
return {'return': 1, 'error': 'Binary download path not set'}
28+
# Find the library subdirectory inside the extracted archive
29+
for entry in os.listdir(install_path):
30+
entry_path = os.path.join(install_path, entry)
31+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
32+
install_path = entry_path
33+
break
34+
# Find the library subdirectory inside the extracted archive
35+
for entry in os.listdir(install_path):
36+
entry_path = os.path.join(install_path, entry)
37+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
38+
install_path = entry_path
39+
break
2840
else:
2941
src_path = env.get('MLC_AOCL_COMPRESSION_SRC_PATH', env.get('MLC_GIT_REPO_CHECKOUT_PATH', ''))
3042
env['MLC_AOCL_COMPRESSION_SRC_PATH'] = src_path

script/get-lib-aocl-compression/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
# Skip build for binary download
3+
if [[ "${MLC_AOCL_BINARY_DOWNLOAD}" == "yes" ]]; then
4+
echo "Binary download mode - skipping build"
5+
exit 0
6+
fi
7+
28
if [[ -z ${MLC_AOCL_COMPRESSION_SRC_PATH} ]]; then
39
echo "Git repository not found!"
410
exit 1

script/get-lib-aocl-crypto/customize.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ def postprocess(i):
2525
install_path = env.get('MLC_AOCL_CRYPTO_BINARY_PATH', '')
2626
if not install_path:
2727
return {'return': 1, 'error': 'Binary download path not set'}
28+
# Find the library subdirectory inside the extracted archive
29+
for entry in os.listdir(install_path):
30+
entry_path = os.path.join(install_path, entry)
31+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
32+
install_path = entry_path
33+
break
34+
# Find the library subdirectory inside the extracted archive
35+
for entry in os.listdir(install_path):
36+
entry_path = os.path.join(install_path, entry)
37+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
38+
install_path = entry_path
39+
break
2840
else:
2941
src_path = env.get('MLC_AOCL_CRYPTO_SRC_PATH', env.get('MLC_GIT_REPO_CHECKOUT_PATH', ''))
3042
env['MLC_AOCL_CRYPTO_SRC_PATH'] = src_path

script/get-lib-aocl-crypto/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
# Skip build for binary download
3+
if [[ "${MLC_AOCL_BINARY_DOWNLOAD}" == "yes" ]]; then
4+
echo "Binary download mode - skipping build"
5+
exit 0
6+
fi
7+
28
if [[ -z ${MLC_AOCL_CRYPTO_SRC_PATH} ]]; then
39
echo "Git repository not found!"
410
exit 1

script/get-lib-aocl-data-analytics/customize.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ def postprocess(i):
2525
install_path = env.get('MLC_AOCL_DA_BINARY_PATH', '')
2626
if not install_path:
2727
return {'return': 1, 'error': 'Binary download path not set'}
28+
# Find the library subdirectory inside the extracted archive
29+
for entry in os.listdir(install_path):
30+
entry_path = os.path.join(install_path, entry)
31+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
32+
install_path = entry_path
33+
break
34+
# Find the library subdirectory inside the extracted archive
35+
for entry in os.listdir(install_path):
36+
entry_path = os.path.join(install_path, entry)
37+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
38+
install_path = entry_path
39+
break
2840
else:
2941
src_path = env.get('MLC_AOCL_DA_SRC_PATH', env.get('MLC_GIT_REPO_CHECKOUT_PATH', ''))
3042
env['MLC_AOCL_DA_SRC_PATH'] = src_path

script/get-lib-aocl-data-analytics/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
# Skip build for binary download
3+
if [[ "${MLC_AOCL_BINARY_DOWNLOAD}" == "yes" ]]; then
4+
echo "Binary download mode - skipping build"
5+
exit 0
6+
fi
7+
28
if [[ -z ${MLC_AOCL_DA_SRC_PATH} ]]; then
39
echo "Git repository not found!"
410
exit 1

script/get-lib-aocl-dlp/customize.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ def postprocess(i):
2525
install_path = env.get('MLC_AOCL_DLP_BINARY_PATH', '')
2626
if not install_path:
2727
return {'return': 1, 'error': 'Binary download path not set'}
28+
# Find the library subdirectory inside the extracted archive
29+
for entry in os.listdir(install_path):
30+
entry_path = os.path.join(install_path, entry)
31+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
32+
install_path = entry_path
33+
break
34+
# Find the library subdirectory inside the extracted archive
35+
for entry in os.listdir(install_path):
36+
entry_path = os.path.join(install_path, entry)
37+
if os.path.isdir(entry_path) and (os.path.isdir(os.path.join(entry_path, 'lib')) or os.path.isdir(os.path.join(entry_path, 'lib64'))):
38+
install_path = entry_path
39+
break
2840
else:
2941
src_path = env.get('MLC_AOCL_DLP_SRC_PATH', env.get('MLC_GIT_REPO_CHECKOUT_PATH', ''))
3042
env['MLC_AOCL_DLP_SRC_PATH'] = src_path

script/get-lib-aocl-dlp/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
# Skip build for binary download
3+
if [[ "${MLC_AOCL_BINARY_DOWNLOAD}" == "yes" ]]; then
4+
echo "Binary download mode - skipping build"
5+
exit 0
6+
fi
7+
28
if [[ -z ${MLC_AOCL_DLP_SRC_PATH} ]]; then
39
echo "Git repository not found!"
410
exit 1

0 commit comments

Comments
 (0)