-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Misuse of PasMP Library in Parallel Loops #29
Comments
@BeRo1985 thanks for proposing these changes. |
Nothing in PasMP has changed regarding this behavior; it has worked this way from the beginning. If the code worked for you previously, that would be due to luck 🙂 , influenced by factors such as your specific hardware configuration, CPU load, and other runtime conditions. However, this usage does not guarantee correct parallel behavior across different environments, and it could easily lead to issues on other systems or under different conditions. And you only have to call |
Thanks @BeRo1985 for the explanation. |
Issue
I've noticed that this project misuses the PasMP library (which I am the author of) in parallel loop handling, which could lead to incorrect behavior in multithreaded operations. Specifically, the parallel loop wrappers are only processing the starting index (
AFromIndex
) without iterating through the full range (AFromIndex
toAToIndex
). Here are the corrections:Corrections
In
TBlake2BP.PasMPParallelComputationWrapper
:Current:
Corrected:
In
TPBKDF_ScryptNotBuildInAdapter.PasMPSMixWrapper
:Current:
Corrected:
In
TPBKDF_Argon2NotBuildInAdapter.PasMPFillMemoryBlocksWrapper
:Current:
Corrected:
Summary
These changes ensure that all indices within the given range are processed correctly, maintaining the intended parallelization behavior.
The text was updated successfully, but these errors were encountered: