Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could there be a direct way to do type conversion when storing to global #40

Closed
edimetia3d opened this issue Feb 25, 2019 · 2 comments
Closed

Comments

@edimetia3d
Copy link

The default output type of IGEMM is int32_t, In my situation, I need to store the ans as a fixed-point number in a uint8_t.

It's easy to do the caculation as isuue #17 mentioned. But when I want to save the data , I have to do some intrusive modification in struct GemmGlobalIteratorCd and struct Store. Though the modification is simple, I did a lot of tests to figure out how the global store works.

So , I hope there could be a better solution in future.

@edimetia3d
Copy link
Author

If someone need the similar function, here is my solution edimetia3d@8fc8e37

@kerrmudgeon
Copy link
Collaborator

It looks like you have addressed this reasonably well.

Fwiw, the CUTLASS 2.x codebase should support this case relatively well, accommodating any arbitrary functor applied to the epilogue including type conversion.

Thanks for posting!

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

No branches or pull requests

2 participants