Skip to content

Some fixes for bug in v1.7.0 - #3163

Closed
akesandgren wants to merge 5 commits into
numpy:masterfrom
akesandgren:master
Closed

akesandgren wants to merge 5 commits into
numpy:masterfrom
akesandgren:master

Conversation

@akesandgren

Copy link
Copy Markdown

Fixes a couple of bugs and adds support for detecting and using openblas instead of Atlas in _dotblas

Lets close this PR and i'll split it into single commit PR's to make it easier to handle.

Ake Sandgren added 5 commits March 22, 2013 13:09
 - _strided_to_strided_one_to_n_with_finish is missing a d-> when
   initializing data_finish_src
 - The comment in allclose says "If either array contains one or more
   NaNs, False is returned." but this is not done properly. Some
   compilers have problem with abs and NaNs.
 - core/src/multiarray/dtype_transfer.c
   _strided_to_strided_string_to_datetime, initialize dt.
 - core/src/umath/ufunc_object.c PyUFunc_Reduceat, initialize
   need_outer_iterator.
 - The original code tried to do a simple subtraction, the result of
   which was just discarded. Optimizers throws that away and the raise
   never happend.
 - openblas is usually a lot faster then ATLAS so make sure it can get
   correctly detected.
Comment thread numpy/core/numeric.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change seems fine to me, but you need to use spaces instead of a hard tab, and need a test.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering myself, what does np.abs(np.nan) give you in the first place?! I am wondering if this isn't fixing a symptom and not the real issue, or is it just the best you can do with the intel compiler?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't immediately see why this change is needed --- the comparison below should give the correct result and also without warnings?

@njsmith

njsmith commented Apr 2, 2013

Copy link
Copy Markdown
Member

Closing as per submitter's comment (which was done as an edit to the main description, in case anyone else is looking for it -- github continues annoying).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants