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

Arithmetic exception in executor static chunker #2282

Closed
mcopik opened this issue Aug 5, 2016 · 3 comments · Fixed by #2294
Closed

Arithmetic exception in executor static chunker #2282

mcopik opened this issue Aug 5, 2016 · 3 comments · Fixed by #2294

Comments

@mcopik
Copy link
Contributor

mcopik commented Aug 5, 2016

While trying to reproduce the issue #2281 I've found another problem, an integer division by zero for static chunk size when called from a parallel fill.
Source code: https://gist.github.com/mcopik/d34318766bb8dc8404255026c47a28c1
CMake script: https://gist.github.com/mcopik/7515e467cbb97b8a6ea983167f305a62
GDB backtrace with the exception:
https://gist.github.com/mcopik/b8e0e0f3b1137a4d46b7015fc8ed255c

Am I doing something wrong? Built and executed with current master.

@sithhell
Copy link
Member

sithhell commented Aug 5, 2016

On Freitag, 5. August 2016 10:57:21 CEST Marcin Copik wrote:

While trying to reproduce the issue #2281 I've found another problem, an
integer division by zero for static chunk size when called from a parallel
fill. Source code:
https://gist.github.com/mcopik/d34318766bb8dc8404255026c47a28c1 CMake
script: https://gist.github.com/mcopik/7515e467cbb97b8a6ea983167f305a62 GDB
backtrace with the exception:
https://gist.github.com/mcopik/b8e0e0f3b1137a4d46b7015fc8ed255c

Am I doing something wrong?

How do I reproduce it? How did you run this code?

@mcopik
Copy link
Contributor Author

mcopik commented Aug 5, 2016

Configure with cmake, build and execute on one thread (--hpx:threads=1) on my machine with 2 Xeon CPUs.
I've overriden CMAKE_PREFIX_PATH in CMakeLists to locate HPX's master build, provided in HPX_LOCATION.

Do you need something else?

@hkaiser
Copy link
Member

hkaiser commented Aug 14, 2016

The problem with your code is that you're trying to run HPX code without initializing the HPX runtime. I will make sure the corresponding functions in HPX will throw an exception in this case instead of silently ignoring this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Standard Algorithms
  
Merged to master
Development

Successfully merging a pull request may close this issue.

3 participants