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

Make the output of codecode/x86_64.py reproducible #108

Conversation

lamby
Copy link
Contributor

@lamby lamby commented Jul 4, 2020

Whilst working on the Reproducible Builds effort I noticed that PeachPy was generating code/documentation in a non-deterministic manner. This is because it was iterating over data structures in a nondeterministic manner which resultd in (non-normative) differences such as:

  -<li><p>VEXPANDPD(ymm{k}{z}, ymm/m256)    [AVX512F and AVX512VL]</p></li>
   <li><p>VEXPANDPD(xmm{k}{z}, xmm/m128)    [AVX512VL]</p></li>
  +<li><p>VEXPANDPD(ymm{k}{z}, ymm/m256)    [AVX512F and AVX512VL]</p></li>

and:

  -        self._implicit_out_regs = {0: 7, 2: 7}
  +        self._implicit_out_regs = {2: 7, 0: 7}

This PR just sorts a bunch of stuff prior to output.

(This was originally filed in Debian as #964186.)

Whilst working on the Reproducible Builds effort [0] we noticed that
PeachPy could not be built reproducibly.

This is due to FIXME.

This was originally filed in Debian as #964186 [1].

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/964186
@Maratyszcza Maratyszcza merged commit 913d74c into Maratyszcza:master May 23, 2022
1 check passed
@lamby
Copy link
Contributor Author

lamby commented May 23, 2022

Thanks. :)

@lamby lamby deleted the 964186-python-peachpy-please-make-the-build-reproducible branch May 23, 2022 15:20
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

Successfully merging this pull request may close these issues.

None yet

2 participants