ENH: Enable unit tests for RISC-V CPU dispatcher utilities #29607
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(numpy_venv) root@yangwang:/home/yangwang/numpy# spin test -- -k "test_cpu_dispatcher" -v
Invoking
build
prior to running tests:$ /home/yangwang/numpy_venv/bin/python3.12 vendored-meson/meson/meson.py compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /home/yangwang/numpy_venv/bin/ninja -C /home/yangwang/numpy/build
ninja: Entering directory `/home/yangwang/numpy/build'
[1/1] Generating numpy/generate-version with a custom command
Saving version to numpy/version.py
$ /home/yangwang/numpy_venv/bin/python3.12 vendored-meson/meson/meson.py install --only-changed -C build --destdir ../build-install
$ export PYTHONPATH="/home/yangwang/numpy/build-install/usr/lib/python3/dist-packages"
$ /home/yangwang/numpy_venv/bin/python3.12 -P -c 'import numpy'
$ cd /home/yangwang/numpy/build-install/usr/lib/python3/dist-packages
$ /home/yangwang/numpy_venv/bin/python3.12 -P -m pytest -m 'not slow' -k test_cpu_dispatcher -v
=============================================================== test session starts ===============================================================
platform linux -- Python 3.12.3, pytest-7.4.0, pluggy-1.5.0 -- /home/yangwang/numpy_venv/bin/python3.12
cachedir: .pytest_cache
benchmark: 5.1.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/yangwang/numpy/build-install/usr/lib/python3/dist-packages/.hypothesis/examples'))
rootdir: /home/yangwang/numpy
configfile: pytest.ini
plugins: xdist-3.6.1, benchmark-5.1.0, cov-4.1.0, hypothesis-6.104.1, timeout-2.3.1
collected 48307 items / 48306 deselected / 1 selected
numpy/_core/tests/test_cpu_dispatcher.py::test_dispatcher PASSED [100%]