Skip to content

Commit

Permalink
Windows CI (#624)
Browse files Browse the repository at this point in the history
* Windows CI

* xfail test on windows

* use inducer/ci-support
  • Loading branch information
isuruf authored Oct 5, 2022
1 parent e938cbd commit 0bcae12
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .conda-ci-build-configure.sh
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
python ./configure.py --cl-inc-dir="$CONDA_PREFIX/include" --cl-lib-dir="$CONDA_PREFIX/lib"
case $(uname) in
MINGW*|MSYS*) python ./configure.py --cl-inc-dir="$CONDA_PREFIX/Library/include" \
--cl-lib-dir="$CONDA_PREFIX/Library/lib";;
*) python ./configure.py --cl-inc-dir="$CONDA_PREFIX/include" \
--cl-lib-dir="$CONDA_PREFIX/lib";;
esac
41 changes: 35 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ jobs:
- name: "Main Script"
run: |
CONDA_ENVIRONMENT=.test-conda-env-py3.yml
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
. ./ci-support.sh
./configure.py --cl-use-shipped-ext
. ./build-and-test-py-project-within-miniconda.sh
build_py_project_in_conda_env
test_py_project
pytest_intel:
name: Pytest Linux Intel CL
Expand All @@ -71,9 +73,34 @@ jobs:
# https://github.com/conda-forge/intel-compiler-repack-feedstock/issues/7
sed -i 's/- pocl/- intel-opencl-rt!=2022.2/g' "$CONDA_ENVIRONMENT"
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
. ./ci-support.sh
./configure.py --cl-use-shipped-ext
build_py_project_in_conda_env
test_py_project
pytest_win:
name: Pytest Windows Intel CL
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: "Main Script"
shell: bash
run: |
set -x
CONDA_ENVIRONMENT=.test-conda-env-py3.yml
sed -i 's/- ocl-icd/- khronos-opencl-icd-loader/g' "$CONDA_ENVIRONMENT"
sed -i '/- git/d' "$CONDA_ENVIRONMENT"
# https://github.com/conda-forge/intel-compiler-repack-feedstock/issues/7
sed -i 's/- pocl/- intel-opencl-rt!=2022.2/g' "$CONDA_ENVIRONMENT"
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
. ./ci-support.sh
./configure.py --cl-use-shipped-ext
. ./build-and-test-py-project-within-miniconda.sh
build_py_project_in_conda_env
test_py_project
pytest_mac:
name: Pytest Mac POCL
Expand All @@ -85,9 +112,11 @@ jobs:
export CC=gcc
CONDA_ENVIRONMENT=.test-conda-env.yml
grep -v ocl-icd .test-conda-env-py3.yml > $CONDA_ENVIRONMENT
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
. ./ci-support.sh
./configure.py --cxxflags= --ldflags= --cl-libname=OpenCL
. ./build-and-test-py-project-within-miniconda.sh
build_py_project_in_conda_env
test_py_project
docs:
name: Documentation
Expand Down
6 changes: 6 additions & 0 deletions test/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

from pyopencl.clrandom import RanluxGenerator, PhiloxGenerator, ThreefryGenerator
import operator
import platform

_PYPY = cl._PYPY

Expand Down Expand Up @@ -230,6 +231,11 @@ def test_zeros_large_array(ctx_factory):
queue = cl.CommandQueue(context)
dev = queue.device

if dev.platform.vendor == "Intel(R) Corporation" \
and platform.system() == "Windows":
pytest.xfail("large array fail with out-of-host memory with"
"Intel CPU runtime as of 2022-10-05")

size = 2**28 + 1
if dev.address_bits == 64 and dev.max_mem_alloc_size >= 8 * size:
# this shouldn't hang/cause errors
Expand Down

0 comments on commit 0bcae12

Please sign in to comment.