JuliaArrays / JuliaArrays/SquareBlockDiagonalArrays

How to apply algorithms in parallel across blocks?

Open
#1 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

It seems like it would make sense to allow the user to control how operations are applied (i.e. whether to use multithreading or not) when the same operation needs to be applied to all the blocks. The code that I added allows a MapAlgorithm argument when initializing the matrix, which specifies what algorithm to use for parallel operations. I didn't include the code for that, but it is here: https://github.com/EarthSciML/EarthSciMLBase.jl/blob/main/src/mtk_grid_func.jl#L7

There may be a better way to do it, though.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading src/mtk_grid_func.jl at the referenced line, then inspect how operations are applied across blocks and how the matrix is initialized. Determine the desired interface for selecting multithreaded or non-threaded algorithms, and define completion around a documented, working way for users to control that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.