arrayfire / arrayfire/arrayfire-python

ParallelRange with Sliced Matrix

Ouverte
#162 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
422
Forks
63
Métriques de merge des PR
Aucune PR mergée en 30 j

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
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
backend, hpc
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.