Skip to content

GEMV #37 + new error checking method#58

Merged
tdehoff merged 14 commits intomainfrom
tatiana-gemv
Feb 25, 2026
Merged

GEMV #37 + new error checking method#58
tdehoff merged 14 commits intomainfrom
tatiana-gemv

Conversation

@tdehoff
Copy link
Owner

@tdehoff tdehoff commented Feb 24, 2026

@WestonJB @jacksonmowry, please see if matched what BLAS++ does for error checks: https://github.com/icl-utk-edu/blaspp/blob/master/test/check_gemm.hh


var out_len = m if not trans else n

# Can't pass a Bool to GPU kernel
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

# Can't pass a Bool to GPU kernel
var trans_i = 1 if trans else 0

@parameter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see now why this fixes everything haha

block_dim=TBsize,
)
else:
return
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do any form of throwing an error here?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

ctx: DeviceContext,
) raises:

# NOTE: add error checking here?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly just revisit with the issue Jonah made #34 ?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to meet and discuss where and how much error checking we want to implement

return error_norm == Scalar[dtype](0)

var err = error_norm / denom
# print("DEBUG: err =", err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this debug

Copy link
Collaborator

@jacksonmowry jacksonmowry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good! Thanks for taking the time to implement the error checking function from blas++

@tdehoff tdehoff merged commit 435e78a into main Feb 25, 2026
1 check passed
@tdehoff tdehoff deleted the tatiana-gemv branch February 26, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants