From 47eafd547f086f35e016a9c083fdb9bf3a89d93d Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 12 May 2022 19:43:07 -0500 Subject: [PATCH 1/2] Stop setting PY_EXE in Gitlab CI config --- .gitlab-ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00ebda7..0436482 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,5 @@ Python 3 POCL: script: | - export PY_EXE=python3 export PYOPENCL_TEST=portable:pthread export EXTRA_INSTALL="jax[cpu]" curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh @@ -17,7 +16,6 @@ Python 3 POCL: Python 3 Nvidia Titan V: script: | - export PY_EXE=python3 export PYOPENCL_TEST=nvi:titan export EXTRA_INSTALL="jax[cuda]" curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh @@ -34,7 +32,6 @@ Python 3 Nvidia Titan V: Python 3 POCL Examples: script: - test -n "$SKIP_EXAMPLES" && exit - - export PY_EXE=python3 - export PYOPENCL_TEST=portable:pthread - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-py-project-and-run-examples.sh - ". ./build-py-project-and-run-examples.sh" @@ -75,7 +72,6 @@ Flake8: Pylint: script: | - export PY_EXE=python3 EXTRA_INSTALL="jax[cpu]" curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh . ./prepare-and-run-pylint.sh "$CI_PROJECT_NAME" examples/*.py test/test_*.py -- GitLab From 981a546703d129a6c4c521000bb07b2eb3fbf4c3 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 12 May 2022 19:42:27 -0500 Subject: [PATCH 2/2] Fix Jax installation on Gitlab CI --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0436482..3f7e760 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,10 +16,13 @@ Python 3 POCL: Python 3 Nvidia Titan V: script: | + curl -L -O https://tiker.net/ci-support-v0 + . ./ci-support-v0 export PYOPENCL_TEST=nvi:titan - export EXTRA_INSTALL="jax[cuda]" - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh - . ./build-and-test-py-project.sh + build_py_project_in_venv + pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_releases.html + test_py_project + tags: - python3 - nvidia-titan-v @@ -82,6 +85,7 @@ Pylint: Mypy: script: | + EXTRA_INSTALL="jax[cpu]" curl -L -O https://tiker.net/ci-support-v0 . ./ci-support-v0 build_py_project_in_venv -- GitLab