[Numpy-discussion] test_closing_fid (in test_io.py) on PyPy

2016-08-05 Thread Matti Picus
test_closing_fid essentially calls this to ensure close() is called when 
a NpzFile object goes out of context:


for i in range(1, 1025):

np.load(tmp)["data"]


This raises a ResourceWarning on python 3, and fails on pypy since the 
garbage collector works differently.


It seems to be a classic example of wrongly using np.load(), but I'm 
sure it is a common use case.


I can submit a pull request to skip on pypy, or should this be solved in 
a more substantial way?


Matti

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] NumPy in PyPy

2016-08-05 Thread Papa, Florin
Hi,

This is Florin Papa from the Dynamic Scripting Languages Optimizations team in 
Intel Corporation.

Our team is working on optimizing the PyPy interpreter and part of this work is 
to find and fix incompatibilities between NumPy and PyPy. Does anyone have 
knowledge of real life workloads that use NumPy and cannot be run using PyPy?

We are also interested in creating a repository with relevant benchmarks for 
real world usage of NumPy, like GUPB for CPython, but we have not found such 
workloads for NumPy.

Thank you,
Florin
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] test_closing_fid (in test_io.py) on PyPy

2016-08-05 Thread Pauli Virtanen
Fri, 05 Aug 2016 10:06:02 +0300, Matti Picus kirjoitti:
[clip]
> I can submit a pull request to skip on pypy, or should this be solved in
> a more substantial way?

Should also be safe to just skip it on Pypy, it's testing that the wrong 
way to use np.load also works on CPython.

-- 
Pauli Virtanen

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] NumPy in PyPy

2016-08-05 Thread Benjamin Root
Don't know if it is what you are looking for, but NumPy has a built-in
suite of benchmarks:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.testing.Tester.bench.html

Also, some projects have taken to utilizing the "airspeed velocity" utility
to track benchmarking stats for their projects. I know astropy utilizes it.
So, maybe their benchmarks might be a good starting point since they
utilize numpy heavily?

Cheers!
Ben Root


On Fri, Aug 5, 2016 at 3:42 AM, Papa, Florin  wrote:

> Hi,
>
>
>
> This is Florin Papa from the Dynamic Scripting Languages Optimizations
> team in Intel Corporation.
>
>
>
> Our team is working on optimizing the PyPy interpreter and part of this
> work is to find and fix incompatibilities between NumPy and PyPy. Does
> anyone have knowledge of real life workloads that use NumPy and cannot be
> run using PyPy?
>
>
>
> We are also interested in creating a repository with relevant benchmarks
> for real world usage of NumPy, like GUPB for CPython, but we have not found
> such workloads for NumPy.
>
>
>
> Thank you,
>
> Florin
>
> ___
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion