Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yujq2
AutoAWQ_kernels
Commits
c4486784
Commit
c4486784
authored
Feb 03, 2024
by
Casper
Browse files
Update script to avoid download rocm files
parent
38c39032
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
scripts/download_wheels.sh
scripts/download_wheels.sh
+3
-2
No files found.
scripts/download_wheels.sh
View file @
c4486784
#!/bin/bash
#!/bin/bash
# Set variables
# Set variables
AWQ_KERNELS_VERSION
=
"0.0.
1
"
AWQ_KERNELS_VERSION
=
"0.0.
3
"
RELEASE_URL
=
"https://api.github.com/repos/casper-hansen/AutoAWQ_kernels/releases/tags/v
${
AWQ_KERNELS_VERSION
}
"
RELEASE_URL
=
"https://api.github.com/repos/casper-hansen/AutoAWQ_kernels/releases/tags/v
${
AWQ_KERNELS_VERSION
}
"
# Create a directory to download the wheels
# Create a directory to download the wheels
...
@@ -14,6 +14,7 @@ curl -s $RELEASE_URL | \
...
@@ -14,6 +14,7 @@ curl -s $RELEASE_URL | \
jq
-r
".assets[].browser_download_url"
|
\
jq
-r
".assets[].browser_download_url"
|
\
grep
'\.whl'
|
\
grep
'\.whl'
|
\
grep
-v
'%2Bcu'
|
\
grep
-v
'%2Bcu'
|
\
grep
-v
'%2Brocm'
|
\
xargs
-n
1
-P
4 wget
xargs
-n
1
-P
4 wget
# Rename the wheels from 'linux_x86_64' to 'manylinux_x86_64'
# Rename the wheels from 'linux_x86_64' to 'manylinux_x86_64'
...
@@ -21,4 +22,4 @@ for file in *linux_x86_64.whl; do
...
@@ -21,4 +22,4 @@ for file in *linux_x86_64.whl; do
mv
"
$file
"
"
$(
echo
$file
|
sed
's/linux_x86_64/manylinux2014_x86_64/'
)
"
mv
"
$file
"
"
$(
echo
$file
|
sed
's/linux_x86_64/manylinux2014_x86_64/'
)
"
done
done
cd
..
cd
..
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment