arrayfire / arrayfire/arrayfire-python

ParallelRange with Sliced Matrix

Open
#162 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
422
Forks
63
PR merge metrics
No merged PRs in 30d

Description

If you slice a matrix in the ParallelRange matmul does not detect the change in dimension and fails:

```
res = af.constant(0,20,20,1000 )
left = af.constant(0, 20, 40)
right = af.constant(0, 40,20, 1000)

af.matmul(left, right[:,:,0]) # this works
for ii in af.ParallelRange(10):
res[:,:,ii] = af.matmul(left, right[:,:,ii]) #will fail
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the provided ParallelRange reproducer with the sliced right[:,:,ii] input and compare it with the standalone matmul that succeeds. Trace the ParallelRange and matmul entry points to find where the slice dimensions are handled; done means the looped matmul completes without failure and produces the expected result shape.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, hpc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.