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_for argument types #35

Closed
Matthewar opened this issue Oct 8, 2017 · 2 comments
Closed

Parallel_for argument types #35

Matthewar opened this issue Oct 8, 2017 · 2 comments

Comments

@Matthewar
Copy link

I was getting the error error: no matching function for call to ‘parallel_for(int, unsigned int&, juliaFrameRender_ParallelInner(unsigned int, unsigned int, complex_t, unsigned int, unsigned in t*)::<lambda(unsigned int)>)’ when trying to add the first parallel loop from 0 to width.
The issue seems to be that the value 0 isn't an unsigned integer, but a normal integer, so I had to static cast it to 0 IE static_cast<unsigned>(0)
Is there a better way of doing this?

@Matthewar Matthewar changed the title Parallel_for arguments Parallel_for argument types Oct 8, 2017
@ppp2211
Copy link

ppp2211 commented Oct 8, 2017

Type 0u instead of 0.

@Matthewar
Copy link
Author

Nice, cheers.

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

2 participants