diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 6e5ab73645..6bd208a326 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 \ @@ -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 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 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