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

Parallel =True issue with 0.56.0 #8362

Closed
untucked opened this issue Aug 17, 2022 · 2 comments
Closed

Parallel =True issue with 0.56.0 #8362

untucked opened this issue Aug 17, 2022 · 2 comments
Labels
more info needed This issue needs more information question Notes an issue as a question

Comments

@untucked
Copy link

untucked commented Aug 17, 2022

Reporting a bug

  • [ x ] I have tried using the latest released version of Numba (most recent is
    visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
  • [ ] I have included a self contained code sample to reproduce the problem.
    i.e. it's possible to run as 'python bug.py'.

I have a script I run that works in version 0.55.2 but fails in the new 0.56.0 version. Here's what it looks like:
@numba.jit(nopython=True, parallel=True)
def optimizedCalc(x_array,y_array,e_array,theta,phi,const):
wave_final=np.zeros(phi.shape)*1j
S1=np.sin(theta)*np.cos(phi)
S2=np.sin(theta)*np.sin(phi)
output=np.zeros(phi.shape)1j
for ii in range(len(e_array)):
output+=excitation[ii]np.exp(1jconst
(x_array[ii]*S1+y_array[ii]*S2))
return output

If I mark parallel = False it works, it's only when it's true that it does not work.

Also if you're wondering why I use range() instead of prange() - it's because prange() does the calculation incorrectly.

@gmarkall gmarkall added needtriage question Notes an issue as a question labels Aug 18, 2022
@gmarkall
Copy link
Member

Can you post a complete sample of the code that reproduces the issue please? Also note that you can format code correctly by enclosing it in triple backticks (see https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code)

@stuartarchibald
Copy link
Contributor

Closing this issue due to lack of information. If more information becomes available please add it and reopen the issue. Thanks.

@stuartarchibald stuartarchibald added more info needed This issue needs more information and removed needtriage labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed This issue needs more information question Notes an issue as a question
Projects
None yet
Development

No branches or pull requests

3 participants