-
Notifications
You must be signed in to change notification settings - Fork 354
rm gemm_common bind #2425
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
Merged
Merged
rm gemm_common bind #2425
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b6d6e0d
rm gemm_commona= and quant type bind
yzhou103 1d3f455
retune failed shape in a8w8_bpreshuffle_tuned_gemm.csv
yzhou103 d747886
Merge branch 'main' into refactor_gemm_common_quantype_bind
yzhou103 60f06c3
recover enum
yzhou103 4a10863
Merge branch 'main' into refactor_gemm_common_quantype_bind
yzhou103 ba21c86
Merge branch 'main' into refactor_gemm_common_quantype_bind
yzhou103 5669ebd
Merge branch 'main' into refactor_gemm_common_quantype_bind
yzhou103 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,8 @@ | ||
| # SPDX-License-Identifier: MIT | ||
| # Copyright (C) 2024-2025, Advanced Micro Devices, Inc. All rights reserved. | ||
| # Copyright (C) 2024-2026, Advanced Micro Devices, Inc. All rights reserved. | ||
|
|
||
| from ..jit.core import ( | ||
| compile_ops, | ||
| ) | ||
| from ..jit.core import compile_ops | ||
|
|
||
|
|
||
| @compile_ops("module_gemm_common") | ||
| @compile_ops("module_gemm_common", fc_name="getPaddedM", ffi_type="ctypes") | ||
| def get_padded_m(M: int, N: int, K: int, gl: int) -> int: ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,13 @@ | ||
| #pragma once | ||
| // SPDX-License-Identifier: MIT | ||
| // Copyright (C) 2024-2025, Advanced Micro Devices, Inc. All rights reserved. | ||
| #include <torch/extension.h> | ||
| // Copyright (C) 2024-2026, Advanced Micro Devices, Inc. All rights reserved. | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
||
| int getPaddedM(int M, int N, int K, int gl /*granularity level*/); | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,26 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| // Copyright (c) 2024, Advanced Micro Devices, Inc. All rights reserved. | ||
| // Copyright (C) 2024-2026, Advanced Micro Devices, Inc. All rights reserved. | ||
| #include <pybind11/pybind11.h> | ||
| #include "rocm_ops.hpp" | ||
| #include "aiter_enum.h" | ||
|
|
||
| PYBIND11_MODULE(module_aiter_enum, m) | ||
| { | ||
| AITER_ENUM_PYBIND; | ||
| pybind11::enum_<QuantType>(m, "QuantType") | ||
| .value("No", QuantType::No) | ||
| .value("per_Tensor", QuantType::per_Tensor) | ||
| .value("per_Token", QuantType::per_Token) | ||
| .value("per_1x32", QuantType::per_1x32) | ||
| .value("per_1x128", QuantType::per_1x128) | ||
| .value("per_128x128", QuantType::per_128x128) | ||
| .value("per_256x128", QuantType::per_256x128) | ||
| .value("per_1024x128", QuantType::per_1024x128) | ||
| .export_values(); | ||
| pybind11::enum_<ActivationType>(m, "ActivationType") | ||
| .value("No", ActivationType::No) | ||
| .value("Silu", ActivationType::Silu) | ||
| .value("Gelu", ActivationType::Gelu) | ||
| .value("Swiglu", ActivationType::Swiglu) | ||
| .export_values(); | ||
| pybind11::implicitly_convertible<int, QuantType>(); | ||
| pybind11::implicitly_convertible<int, ActivationType>(); | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.