| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This was a little confusing in the sprint. To verify, look at
the output of `python runtests.py --help`
[ci skip]
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
BUG, Benchmark: fix passing optimization build options to asv
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'_simd' is a new module to bring the NumPy C SIMD vectorization interface "NPYV"
The module is designed to be extremely flexible so that it can accommodate any kind
intrinsics, also to generate a python interface almost similar to the C interface.
The main purpose of this module is to test NPYV intrinsics in python,
but still can be used as an effective solution in designing SIMD kernels.
Also add a new command-line argument `--simd-test` to control of targeted CPU features
for the `_simd` module.
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|
|
|
|
| |
This patch allows passing `-j`, `--cpu-baseline`, `--cpu-dispatch` and `--disable-optimization`
to ASV build when argument `--bench-compare` is used.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently running mypy with the NumPy stubs configured requires
either:
- Installing NumPy
- Adding the source directory to MYPYPATH and linking to the mypy.ini
Both options are somewhat inconvenient, so add a `--mypy` option to
runtests that handles setting things up for you.
This will also be useful in the future for any typing codegen since it
will ensure the project is built before type checking.
|
|
|
|
| |
Currently the IPython shell from runtests has no colors; enable them.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Put `CCompilerOpt` in action through add two command line
arguments that passed directly to `CCompilerOpt`'s
parameters which explained as follows:
* `--cpu-baseline` minimal set of required optimizations,
default is 'min' which provides the minimum CPU features
that can safely run on a wide range of users platforms.
* `--cpu-dispatch` dispatched set of additional optimizations,
default is 'max-xop-fma4' which enables all CPU features,
except for AMD legacy features.
the new arguments can be reached from `build`, `build_clib`,
`build_ext`, if `build_clib` or `build_ext` are not specified
by the user the arguments of `build` will be used, which also
hold the default values.
- Activate the new compiler dispatcher that comes with `CCompilerOpt`,
through adding a hock inside `build_clib` and `build_ext`
that works as a filter taking any C source files ends with
`.dispatch.c` and pass it directly to `CCompilerOpt` and
then take returned objects and linked to the final C lib.
- Add a third command-line argument `--disable-optimization` which
explicitly disable the whole new infrastructure, also
It adds a new compiler definition called `NPY_DISABLE_OPTIMIZATION`.
when `--disable-optimization` is enabled the dispatch-able sources
that end with `.dispatch.c` will be treated as a normal
C sources, also due to this disabling any C headers that
generated by `CCompilerOpt` must guard it with `NPY_DISABLE_OPTIMIZATION`,
otherwise, it will definitely break the build.
- New auto-generated C header located at `core/include/numpy/_cpu_dispatch.h`,
the new header contains all definitions and headers of CPU features that
enabled according to specified configuration in `--cpu-baseline`
and `--cpu-dispatch`.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since arguments list benchmarks, all arguments after the first
unknown `--` starting (removing a single first `--`) are passed
on to asv. Previously this was the right pattern for passing
to pytest, so it now works also for ASV.
Examples:
`runtests.py` `--bench-compare master sin --cpu-affinity 1`
`--bench-compare master -- --cpu-affinity 1`
`--bench sin --cpu-affinity 1`
`--bench -- --cpu-affinity 1`
|
|
|
|
| |
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
|
|
|
|
|
|
| |
* Cleanup unused imports (F401) of mostly standard Python modules,
or some internal but unlikely referenced modules
* Where internal imports are potentially used, mark with noqa
* Avoid redefinition of imports (F811)
|
| |
|
|
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
| |
|
|\
| |
| | |
DOC: Note runtests.py `-- -s` method to use pytests `-s`
|
| |
| |
| |
| |
| |
| |
| |
| | |
The `-s` option allows disabling the printing capture, which can
be useful during debugging, and thus should be a bit more
discoverable.
Replaces/closes gh-12829
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
| |
See gh-12610 for details.
|
|
|
|
|
| |
Prefix `-std=c99` to the CFLAGS environmental variable. C99 is the
standard for NumPy >= 1.17.
|
|
|
|
|
|
|
|
| |
* ported the refguide_check module from SciPy for usage
in NumPy docstring execution/ verification; added the
refguide_check run to Azure Mac OS CI
* adjusted NumPy docstrings such that refguide_check passes
|
| |
|
|\
| |
| | |
BLD: Do not use gcc warnings flags when 'gcc' is actually clang.
|
| | |
|
|/
|
|
|
|
| |
* there is a slightly different syntax for specific test selection
in pytest vs. nose; update the syntax of the example in runtests.py
to match pytest
|
|
|
|
|
|
| |
Without this, my powershell terminal would block on the build completing.
This already matches the logic in the log-less case
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Takes over some bits from SciPy. The most visible user change is the
replacement of `--timer` by `--durations`, with `--durations=0` meaning
time all tests.
|
|
|
|
| |
`check_output` returns bytes, but the rest of the command line is unicode.
|
|
|
|
|
|
|
|
|
| |
The '-t' was broken when init files were added to the tests directories,
as it was no longer valid to import tests from the numpy git repo. The
fix here is the use a path to the installed numpy. Which numpy that is
depends on the '--no-build' option.
[ci skip]
|
| |
|