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
gaoqiong
MIGraphX
Commits
962329f3
Unverified
Commit
962329f3
authored
Feb 17, 2023
by
Chris Austen
Committed by
GitHub
Feb 17, 2023
Browse files
add support for python 3.10 (#1570)
Enable python 3.10 bindings
parent
ac531d99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
Dockerfile
Dockerfile
+2
-1
cmake/PythonModules.cmake
cmake/PythonModules.cmake
+1
-1
tools/install_prereqs.sh
tools/install_prereqs.sh
+1
-1
No files found.
Dockerfile
View file @
962329f3
...
...
@@ -54,8 +54,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
# add this for roctracer dependancies
RUN
pip3
install
CppHeaderParser
packaging
==
22.0
RUN
pip3
install
CppHeaderParser
# Workaround broken rocm packages
RUN
ln
-s
/opt/rocm-
*
/opt/rocm
...
...
cmake/PythonModules.cmake
View file @
962329f3
...
...
@@ -76,7 +76,7 @@ function(py_add_module NAME)
)
endfunction
()
set
(
PYTHON_SEARCH_VERSIONS 2.7 3.5 3.6 3.7 3.8 3.9
)
set
(
PYTHON_SEARCH_VERSIONS 2.7 3.5 3.6 3.7 3.8 3.9
3.10
)
set
(
PYTHON_DISABLE_VERSIONS
""
CACHE STRING
""
)
foreach
(
PYTHON_DISABLE_VERSION
${
PYTHON_DISABLE_VERSIONS
}
)
list
(
REMOVE_ITEM PYTHON_SEARCH_VERSIONS
${
PYTHON_DISABLE_VERSION
}
)
...
...
tools/install_prereqs.sh
View file @
962329f3
...
...
@@ -57,7 +57,7 @@ echo "Dependencies are installed at $PREFIX"
rbuild prepare
-d
$PREFIX
-s
develop
# install onnx package for unit tests
pip3
install
onnx
==
1.10.
0
numpy
==
1.21.6
typing
==
3.7.4
pytest
==
6.0.1
packaging
==
16.8
pip3
install
onnx
==
1.10.
2
numpy
==
1.21.6
typing
==
3.7.4
pytest
==
6.0.1
packaging
==
23.0
# pin version of protobuf in Python for onnx runtime unit tests
pip3
install
protobuf
==
3.20.0
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