Giter Site home page Giter Site logo

Comments (4)

schveiguy avatar schveiguy commented on June 10, 2024 1

It seems that the array is empty that is being iterated over, and for some reason on Linux/ARM on this VM, this causes the error to occur. Still investigating, I'm not 100% sure it's OK for the list to be empty, but maybe it's ok and indeed an issue on phobos. Will debug further.

from reggae.

schveiguy avatar schveiguy commented on June 10, 2024 1

I figured it out. Three conditions are happening:

  1. I have allocated only one CPU to the VM. This is reasonable for me, since I don't care about parallel execution here (this is a vibe-d app), and I don't want to consume resources from my main system.
  2. std.parallelism assigns a default thread pool size as numCPUs - 1. i.e. 0 threads.
  3. This array that reggae is looping over is of length 0. So it decides to use 0 as the work unit size, and hence the error.

I have to examine why 0 is a problem here. I think the reason for the numCPUs - 1 is because you obviously have the CPU you are using to call the function! But then why does it fail if it can only use that one?

For now, I can up the CPUs to 2 on my VM, and file a bug in Phobos.

from reggae.

schveiguy avatar schveiguy commented on June 10, 2024 1

Bug report: https://issues.dlang.org/show_bug.cgi?id=22745

from reggae.

atilaneves avatar atilaneves commented on June 10, 2024

It's from std.parallelism, so probably a Phobos bug on that platform.

from reggae.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.