question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parallel particle evaluation

See original GitHub issue

Is your feature request related to a problem? Please describe. I know I have an expensive function to evaluate, I am doing a simulation based optimization of a hyper parameter space. I am planning to use HPC environment because of this. Can particles be evaluated in parallel? Synchronously or even asynchronously? I thought an approach similar to this would be interesting (let me know if article is inaccessible).

Describe the solution you’d like A switch to enable threads for particle evaluations. In particular, I am fine with firing off os.system() commands and waiting for return.

Describe alternatives you’ve considered I supposed I could write a sub-script that executes the swarm in parallel, evaluates the target function for each particle, and returns those values to the optimizer. This wouldn’t allow for async optimization. Also, I could also try to write another optimizer, one that takes an option for the number of parallel particles.

What is the best way to go here? Still digging into this API currently.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
stevenbwcommented, Feb 24, 2019

@danielcorreia96 - I think Lj is referring to you not me here 😄

2reactions
whzupcommented, Feb 20, 2019

@ljvmiranda921 @danielcorreia96 May I provide some thoughts of mine to the design issue. I feel like we should decouple the parallel particle evaluation and the optimizers such that one would still have access to it when he builds his own optimizer. To be honest, I don’t know if this is even possible but the optimizers should have as little of additional functionality compared to the backend as possible, shouldn’t they?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance Evaluation of Parallel Particle Swarm ...
The main goal of this paper is to introduce a parallel particle swarm optimization (PPSO) on multi-core processing kernel to decrease the determination....
Read more >
Evaluation of Single-Node Performance of Parallel Algorithms ...
We summarize that the performance loss of the event-based algorithm is mainly due to: 1) extra operations to reorganize particles, 2) batched ...
Read more >
Evaluation of parallel particle swarm optimization algorithms ...
In this paper we discuss possible approaches to parallelizing PSO on graphics hardware within the Compute Unified Device Architecture (CUDA™), a ...
Read more >
Evaluating Parallel Particle Advection Algorithms Over ...
We consider the problem of efficient particle advection in a distributed- memory parallel setting, focusing on four popular parallelization algorithms.
Read more >
Parallel Particle Impactor Paper.pdf - SKC, Inc.
Parallel particle impactor – novel size-selective particle sampler for accurate fractioning of inhalable particles. S Trakumas1 and E Salter2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found