spcl / spcl/dace

Wrong Gemm library translation on sliced matrices

Open
#1,401 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
593
Forks
163
Avg merge
2d 23h
Merged PRs (30d)
60

Description

**Describe the bug**
The library expansion for the Gemm operation using cublas is wrong on sliced matrices. This likely applies to other library expansions. Correct behavior would require the called library function to support strided matrices, which is not the case. The current implementation will detect the correct number of rows/columns involved as well as the row offset, but not the column offset.

The "pure" implementation works correctly.

**To Reproduce**
[bug.zip](https://github.com/spcl/dace/files/12967770/bug.zip)

**Expected behavior**
Translation should fail or fallback to a pure implementation with a warning

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.