Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy RuntimeWarning not raised by cunumeric #1115

Open
CharlelieLrt opened this issue Jan 23, 2024 · 0 comments
Open

Numpy RuntimeWarning not raised by cunumeric #1115

CharlelieLrt opened this issue Jan 23, 2024 · 0 comments

Comments

@CharlelieLrt
Copy link

CharlelieLrt commented Jan 23, 2024

Expected behavior

When running a numpy code, I am getting some warnings such as:

RuntimeWarning: overflow encountered in multiply
  rhoE - 0.5 * num.sum(rhou * rhou, axis=0) / rho

or:

RuntimeWarning: invalid value encountered in add
  return 0.5 * (x[(..., *idx_m)] + x[(..., *idx_p)])

Observed behavior

When running the same code with legate, these warnings are not raised (Note that the warnings are expected).

As discussed with @manopapad this is probably due to the backend libraries such as CuBLAS that do not have a "safe mode", or at least are running without it to avoid some significant overhead.
@manopapad suggested that to avoid overhead it is probably better for now to implement checks for Nans or Infs at the user level rather than in cunumeric.

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

No branches or pull requests

1 participant