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

[BUG]: CL_PSO doesn't support parallelization #173

Open
wksiazek opened this issue Dec 29, 2024 · 2 comments
Open

[BUG]: CL_PSO doesn't support parallelization #173

wksiazek opened this issue Dec 29, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@wksiazek
Copy link

Description of the bug

Hi,

I've noticed a significant difference in performance between versions 2.5.3 and 3.0.1 of the mealpy library when using the CL_PSO algorithm.

In version 2.5.3, the CL_PSO algorithm supported parallelization, which resulted in much faster computations. However, in version 3.0.1, I receive the following warning message:

2024/12/29 10:11:45 PM, WARNING, mealpy.swarm_based.PSO.CL_PSO: CL_PSO doesn't support parallelization. The default mode 'single' is activated.

As a result, the algorithm now works noticeably slower.

Could you clarify:

Why was parallelization abandoned for CL_PSO in the newer version?
Are there plans to reintroduce parallelization for this algorithm in future releases?

Thank you for your work on the library! I'm looking forward to your response.

Steps To Reproduce

.

Additional Information

No response

@wksiazek wksiazek added the bug Something isn't working label Dec 29, 2024
@Juns-Cheng
Copy link

Have you solved the problem? I checked the attributes of several PSO algorithms. They say they can support parallel modes. But I cannot run them in process or threads mode.

@thieu1995
Copy link
Owner

Hi guys, I'm kinda busy this time, but this request will be handled in the following weeks. Please be patient, the next updated version will be amazed. Now, just enjoy what we have here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants