We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c11e33 commit f9c3285Copy full SHA for f9c3285
1 file changed
mlir/utils/tuna/tuna-script.sh
@@ -158,4 +158,12 @@ if [ "${VIRTUAL_ENV:-}" = "" ]; then
158
source /tuna-venv/bin/activate
159
fi
160
161
+# Ensure hip-python is importable
162
+if ! python3 -c "from hip import hip" 2>/dev/null; then
163
+ HIP_PY_DIR=$(mktemp -d)
164
+ python3 -m pip install --index-url https://test.pypi.org/simple/ \
165
+ --target "$HIP_PY_DIR" hip-python
166
+ export PYTHONPATH="${HIP_PY_DIR}:${PYTHONPATH:-}"
167
+fi
168
+
169
tuna_run "$OP" "$TUNING_SPACE"
0 commit comments