Skip to content

[Feature] Parallelize kwavearray functions #523

@faberno

Description

@faberno

Is your feature request related to a problem? Please describe.
I was wondering if its possible to parallelize get_array_binary_mask and combine_sensor_data of the kWaveArray class.
For simulations with many array elements these functions are a major bottleneck.

Describe the solution you'd like
Currently these functions contain a loop which iterates over every element. But the iterations are independent of each other, so in theory it should be possible to multiprocess them. This would probably require some refactoring to avoid copying the kwavearray and kgrid class for every thread.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions