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

[SYCLomatic]Enable migration for CUBLASLT_MATMUL_DESC_BIAS_DATA_TYPE #2385

Open
wants to merge 2 commits into
base: SYCLomatic
Choose a base branch
from

Conversation

abhilash1910
Copy link
Contributor

@@ -133,7 +134,7 @@ class matmul_desc_t {
};

matmul_desc_t(compute_type compute_type, library_data_t scale_type)
: _compute_type(compute_type), _scale_type(scale_type) {}
: _compute_type(compute_type), _scale_type(scale_type), _bias_type(bias_type) {}
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no bias_type in the constructor parameter, so you can give a default value directly:

Suggested change
: _compute_type(compute_type), _scale_type(scale_type), _bias_type(bias_type) {}
: _compute_type(compute_type), _scale_type(scale_type), _bias_type(some default value) {}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok Wiill modify this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed to library_data_t for bias_type (similar to scalar type).
@zhiweij1 could you please suggest ? Thanks

Copy link
Contributor

@zhiweij1 zhiweij1 Oct 21, 2024

Choose a reason for hiding this comment

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

71bac7a is right. But you have not correct the init list of the constructor. Another option is removing , _bias_type(bias_type) in the init list and set the default value at line 179.

Copy link
Contributor

@zhiweij1 zhiweij1 left a comment

Choose a reason for hiding this comment

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

Please update the PR.

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