From 88e89315d5d64bcf0d6e698b824530d473786cf2 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Tue, 16 May 2023 08:34:03 -0500 Subject: [PATCH 1/3] Update meta.yaml to require sysroot_linux-64 >=2.28, and use dppy/label/tools to get it until it comes online from conda-forge --- .github/workflows/conda-package.yml | 2 +- conda-recipe/meta.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 6e5ab73645..3e602e31e3 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -44,7 +44,7 @@ jobs: run: conda install conda-build - name: Build conda package run: | - CHANNELS="-c intel -c main --override-channels" + CHANNELS="-c dppy/label/tools -c intel -c main --override-channels" VERSIONS="--python ${{ matrix.python }}" TEST="--no-test" conda build \ diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index a2bc599e38..0bcfe56c18 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -14,7 +14,7 @@ requirements: build: - {{ compiler('cxx') }} - {{ compiler('dpcpp') }} >=2023.1 # [not osx] - - sysroot_linux-64 >=2.17 # [linux] + - sysroot_linux-64 >=2.28 # [linux] host: - setuptools - cmake >=3.21 From 95a8142e5aa8b490686565afcac4b940ee40faf0 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Tue, 16 May 2023 11:11:19 -0500 Subject: [PATCH 2/3] Use verbose lsplatform in run_test.sh --- conda-recipe/run_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda-recipe/run_test.sh b/conda-recipe/run_test.sh index 66193be58c..4b3566d7bd 100644 --- a/conda-recipe/run_test.sh +++ b/conda-recipe/run_test.sh @@ -3,5 +3,5 @@ set -e ${PYTHON} -c "import dpctl; print(dpctl.__version__)" -${PYTHON} -c "import dpctl; dpctl.lsplatform()" +${PYTHON} -c "import dpctl; dpctl.lsplatform(verbosity=2)" ${PYTHON} -m pytest -q -ra --disable-warnings -p no:faulthandler --cov dpctl --cov-report term-missing --pyargs dpctl -vv From b1495a266bdfb30fc048e7766f384746f57a2d00 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Tue, 16 May 2023 09:41:48 -0500 Subject: [PATCH 3/3] Added gdb call in test_linux as a separate step This calls crashing test_tensor_elementwise under gdb in batch mode in CI. gdb call exit code is ignored --- .github/workflows/conda-package.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 3e602e31e3..6bd208a326 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -161,13 +161,20 @@ jobs: run: | . $CONDA/etc/profile.d/conda.sh conda activate test_dpctl - python -c "import dpctl; dpctl.lsplatform()" + python -c "import dpctl; dpctl.lsplatform(verbosity=2)" + - name: Install gdb + run: | + sudo apt-get install -y gdb + - name: Run test_elementwise under gdb + run: | + . $CONDA/etc/profile.d/conda.sh + conda activate test_dpctl + gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_tensor_elementwise::test_cos_order -vv || true - name: Run tests run: | . $CONDA/etc/profile.d/conda.sh conda activate test_dpctl - # clinfo -l - python -m pytest --pyargs $MODULE_NAME + python -m pytest -v --pyargs $MODULE_NAME test_windows: needs: build_windows