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

''Floating point overflow (core dumped)'' due to the recent update of xbyak #207

Open
LBruyne opened this issue Apr 14, 2024 · 1 comment

Comments

@LBruyne
Copy link

LBruyne commented Apr 14, 2024

Recently, downloading and running this repository has resulted in a 'Floating point overflow (core dumped)' error due to an update in the dependency 'xbyak'.

@LBruyne
Copy link
Author

LBruyne commented Apr 14, 2024

My solution:
First, run git submodule update --init --recursive to fetch and update the dependencies.
Next, proceed with the following modification:

  • Find xbyak_util.h in the submodule xbyak,
  • Do the following 3 modification:
    • In line 99,
      image
    • In line 107,
      image
    • In line 128,
      image
      The code here is:
        unsigned int nb_logical_cores = extractBit(data[0], 14, 25) + 1;
        if (n_cores != 0) // true only if leaf 0xB is supported and valid
            nb_logical_cores = (std::min)(nb_logical_cores, n_cores);
        assert(nb_logical_cores != 0);

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

1 participant