| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
MAINT: remove redundant open() modes and io.open() alias
|
| | |
|
|/
|
|
|
| |
This assumes NumPy is rebased before tests run,
but does not assume the locations are in the database.
|
|
|
|
|
|
| |
$ python runtests.py -s numpy.lib.recfunctions --refguide-check -v
Previously, the `-v` switch was silently ignored.
|
|
|
|
|
|
|
| |
[skip azurepipelines]
[skip travis]
Closes gh-20355
|
| |
|
|
|
|
|
|
|
|
| |
In particular this supports Pyston, which has an additional
format field in these path schemes. Instead of manually
specifying which fields we think exist, do what I assume is the
intention of using the default field values for everything
except for the few that we want to override.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* TST: avoid distutils.sysconfig in runtests.py
* fix for platlibdir (new in python3.9)
* linting
|
|
|
|
|
|
|
| |
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.
|