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

test_osc_probs_layers_kernel complex division by zero for fp32 #591

Open
jllanfranchi opened this issue Mar 20, 2020 · 0 comments
Open

test_osc_probs_layers_kernel complex division by zero for fp32 #591

jllanfranchi opened this issue Mar 20, 2020 · 0 comments
Assignees

Comments

@jllanfranchi
Copy link
Contributor

Test only runs on CPU; if done so with fp64 it succeeds; if fp32, we get

$ export PISA_TARGET=cpu ; export PISA_FTYPE=fp32 ; python ~/src/pisa/pisa/stages/osc/prob3numba/numba_osc.py                  
<< PISA_FTYPE env var is defined as: "fp32"; PISA_TARGET env var is defined as: "cpu"; PISA is running in single precision (FP32) mode; numba is running on CPU (single core) >>
Traceback (most recent call last):
  File "/home/justin/src/pisa/pisa/stages/osc/prob3numba/numba_osc.py", line 857, in <module>
    test_osc_probs_layers_kernel()
  File "/home/justin/src/pisa/pisa/stages/osc/prob3numba/numba_osc.py", line 821, in test_osc_probs_layers_kernel
    osc_probs)
  File "/home/justin/anaconda2/lib/python3.7/site-packages/numba/targets/numbers.py", line 1082, in complex_div
    raise ZeroDivisionError("complex division by zero")
ZeroDivisionError: complex division by zero

Refer to:
https://github.com/IceCubeOpenSource/pisa/blob/b2688a0d94ab6ec1957c4ca96f6cfd393da4a6f7/pisa/stages/osc/prob3numba/numba_osc.py#L802-L821

@jllanfranchi jllanfranchi changed the title test_osc_probs_layers_kernel for fp32 test_osc_probs_layers_kernel complex division by zero for fp32 Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants