Commit Graph

3949 Commits

Author SHA1 Message Date
assistant-librarian[bot]
055f643f4f Merge commit 'ad57f6ef0bcaeef7988bfd3954aac06554f12afb' into develop 2025-11-19 11:12:09 +00:00
John Shumway
1036380fba [CK_BUILDER] Put global CK functions in an the CK namespace (#3232)
* Wrap ck host utitlies in CK namespace.

The CK and CK-Tile source code bases are incompatible because CK is not properly using namespaces everywhere. In particular, we need to put hip_check_error in the ck namespace.

Move all functions in include/ck_/host_utility that were in global namespace into the ck namespace.

There may be additional namespace problems like this, and it's possible we'll have namespace clashes. But it is good design to properly guard our to code bases (CK and CKTile) so that they can both coexist. Moreover, estabilishing this compatiblity is essential if we are going to allow the builder to instantiate  kernels from either template library.

* Add using declarations to test code.

After moving some of the untils into the ck namespace, most examples and a few tests had to be updated to recognize the new namespace declarations. We add using declarations to individual compute units for functions that were previously in the global namespace.

* Add using declarations to client examples.

[ROCm/composable_kernel commit: ad57f6ef0b]
2025-11-19 11:23:02 +01:00
assistant-librarian[bot]
05f83b643f Merge commit 'd7b31978692a6747f5fc232e2ac424566e40b0b8' into develop 2025-11-19 06:16:01 +00:00
Anton Gorenko
a9ddd16f4f [CK_TILE] FMHA Reduce register spilling in fwd with dropout (workaround for CI failures with clang-22) (#3221)
* Use vectorized stores for dropout randvals

With no kPadSeqLenK the kernel uses 2 buffer_store_dwordx2 instead of
16 buffer_store_byte. This requires less registers and reduces spilling.

* Calculate dropout randvals for storing and applying only once

Even though it may add a small overhead when storing is not required,
it uses significantly less registers and hence no spilling.

[ROCm/composable_kernel commit: d7b3197869]
2025-11-19 10:40:12 +05:00
assistant-librarian[bot]
751e5d85a6 Merge commit 'e91ee8578cc9e493f12ee01055a35a405571effc' into develop 2025-11-18 19:12:13 +00:00
Aviral Goel
3fd2a773f1 chore(copyright): update copyright header for docs & include directory (#3226)
* chore(copyright): update copyright header for tile_engine directory

* chore(copyright): update copyright header for script directory

* chore(copyright): update copyright header for test_data directory

* chore(copyright): update copyright header for python directory

* chore(copyright): update copyright header for profiler directory

* chore(copyright): update copyright header for library directory

* chore(copyright): update copyright header for include directory

* chore(copyright): update copyright header for docs directory

[ROCm/composable_kernel commit: e91ee8578c]
2025-11-18 10:23:14 -08:00
Aviral Goel
0cfa802f89 chore(copyright): update copyright header for include directory (#3224)
* chore(copyright): update copyright header for tile_engine directory

* chore(copyright): update copyright header for script directory

* chore(copyright): update copyright header for test_data directory

* chore(copyright): update copyright header for python directory

* chore(copyright): update copyright header for profiler directory

* chore(copyright): update copyright header for library directory

* chore(copyright): update copyright header for include directory

[ROCm/composable_kernel commit: f5ac3ee359]
2025-11-18 10:17:18 -08:00
Max Podkorytov
b1faa0c1c5 [CK-Tile] Remove usage of tile partitioner's full gemm shape (#3204)
gemm shape should be used from the pipeline instead (where it gets from a problem description struct)

[ROCm/composable_kernel commit: a3a4eb12bd]
2025-11-18 09:56:40 -08:00
assistant-librarian[bot]
86a4127e31 Merge commit 'ac70206b2c8b43447e46ad382057fe56dc639803' into develop 2025-11-18 15:13:30 +00:00
Aviral Goel
adf8515169 feat: add support for bf16 for grouped_gemm & grouped_gemm_preshuffle… (#3225)
* feat: add support for bf16 for grouped_gemm & grouped_gemm_preshuffle kernel(s) along with unit test

* docs: Update CHANGELOG.MD

[ROCm/composable_kernel commit: ac70206b2c]
2025-11-18 09:32:27 -05:00
assistant-librarian[bot]
c557f19704 Merge commit '3ede8e2a6e9a1c921f27e2d66442829a092cc646' into develop 2025-11-18 09:14:09 +00:00
Sami Remes
888474139d [CK_TILE] Non-K Major from old CK to CK-Tile - fix reverted PR (#3199)
* Reapply "[CK_TILE] Non-K Major from old CK to CK-Tile (#2442)" (#3017)

This reverts commit fc0f6be56d.

* WIP

* take Y2 as the AK1/BK1 value, that is the 'vector size' after shuffle

* use get_n_lds_banks()

* clang-format

---------

Co-authored-by: Adam Osewski <19374865+aosewski@users.noreply.github.com>

[ROCm/composable_kernel commit: 3ede8e2a6e]
2025-11-18 10:17:02 +02:00
assistant-librarian[bot]
b9e9aa04c2 Merge commit 'b6720531de9cbbe5f6022f173ead11c61860f57f' into develop 2025-11-18 06:16:01 +00:00
Yi DING
e2060bd1fb [CK_TILE] MX Flatmm Split kernel instances (#3207)
* [CK_TILE] MX Flatmm Split kernel instances

* Fix flatmm example compile

[ROCm/composable_kernel commit: b6720531de]
2025-11-18 13:46:30 +08:00
assistant-librarian[bot]
ca68d8728c Merge commit '92498464f6ede6c4b1f990a57193c47b52530030' into develop 2025-11-18 00:35:57 +00:00
kabrahamAMD
ada21c86cc [CK_Builder] removed direction and elementwise_operation from required parameters … (#3192)
Removed direction and elementwise operation from default values required for convolution signature concept. Added constexpr helpers to set default values. Add compile-time tests.

[ROCm/composable_kernel commit: 92498464f6]
2025-11-17 15:23:48 -08:00
assistant-librarian[bot]
c6712a96ff Merge commit '22a934a2294b778521a85e179c14155b6f72a2e4' into develop 2025-11-17 17:13:23 +00:00
Aviral Goel
540c8377cf chore(copyright): update copyright header for include directory (#3219)
* chore(copyright): update copyright header for tile_engine directory

* chore(copyright): update copyright header for script directory

* chore(copyright): update copyright header for test_data directory

* chore(copyright): update copyright header for python directory

* chore(copyright): update copyright header for profiler directory

* chore(copyright): update copyright header for library directory

[ROCm/composable_kernel commit: 22a934a229]
2025-11-17 08:57:45 -08:00
assistant-librarian[bot]
54282fc7b2 Merge commit 'b38bb492a1a55b5abb0c345962143c0f9c482cfb' into develop 2025-11-15 01:40:21 +00:00
Illia Silin
dbe4c1c957 Disable DL kernels on all architectures except gfx103x. (#3218)
* disable dl kernels on all archs except gfx103

* add gfx10-3-generic target to cmake

[ROCm/composable_kernel commit: b38bb492a1]
2025-11-14 17:39:50 -08:00
assistant-librarian[bot]
b4e313286b Merge commit '0aadb4b2c4114a26147c30abc894f2693795b888' into develop 2025-11-14 20:13:54 +00:00
Aviral Goel
4cbde83cb6 chore(copyright): update copyright header for profiler directory (#3205)
* chore(copyright): update copyright header for tile_engine directory

* chore(copyright): update copyright header for script directory

* chore(copyright): update copyright header for test_data directory

* chore(copyright): update copyright header for python directory

* chore(copyright): update copyright header for profiler directory

[ROCm/composable_kernel commit: 0aadb4b2c4]
2025-11-14 11:19:25 -08:00
assistant-librarian[bot]
ac02ddd324 Merge commit '3aa883b9ffd3dc4c18414b818774d3da94b8b9e1' into develop 2025-11-14 17:12:11 +00:00
Aviral Goel
e7393f3fd7 chore(copyright): update copyright header for python directory (#3200)
* chore(copyright): update copyright header for tile_engine directory

* chore(copyright): update copyright header for script directory

* chore(copyright): update copyright header for test_data directory

* chore(copyright): update copyright header for python directory

[ROCm/composable_kernel commit: 3aa883b9ff]
2025-11-14 08:21:36 -08:00
jefyang1
452f0ffbe4 Add new gemm multiply multiply instances on gfx950 (#3213)
[ROCm/composable_kernel commit: d30babbd00]
2025-11-14 08:20:41 -08:00
assistant-librarian[bot]
32b8a73252 Merge commit 'caadb896f1e01032a9d9a7db8484f9d1f3861f1e' into develop 2025-11-14 05:13:13 +00:00
John Afaganis
b8f01a2f11 7.2 version bump (#3210)
* 7.2 version bump

* Update CHANGELOG.md

* Update Jenkinsfile

* Update CHANGELOG.md

* Update CMakeLists.txt

* Update Jenkinsfile

[ROCm/composable_kernel commit: caadb896f1]
2025-11-13 21:04:03 -08:00
assistant-librarian[bot]
897c2bd422 Merge commit '4d629cd2b0bb0b4b210881be0db398bcd382f444' into develop 2025-11-14 02:43:22 +00:00
BingYuan.Zhou
3800080d25 fix build error (#3195)
Co-authored-by: root <root@hjbog-srdc-39.amd.com>

[ROCm/composable_kernel commit: 4d629cd2b0]
2025-11-14 09:46:13 +08:00
Yi DING
1c30bad4c7 [CK_TILE] Improve device printing (#3198)
* [CK_TILE] Improve device printing

* fix host gtest build

* clean

[ROCm/composable_kernel commit: 4a8b17d1a4]
2025-11-14 09:46:06 +08:00
assistant-librarian[bot]
a96aded2b1 Merge commit '2a73eb3bc0828db654c73058f20a2b794c16cb01' into develop 2025-11-14 00:36:42 +00:00
yinglu
126a2a4cf4 Simulate TF32 with BF16x3 (#3142)
* tf32:bf16x3:use bf16x3 emulate tf32 gemm

* change blockwiseGemm to demo bf16x3

* temp push

* self review

* self review

* fix multi-device compile error

* bug fix

* code refactor

* limit to gfx950

* enhance gemm gfx942 threshold

* lower change from blockwise to warpwise

* refact codes

* refact codes

* error fix

* change threshold

* bug fix

* fix threshold error

* change host reference implement to same as device

* bug fix

* bug fix

* code refact

* fix clang-format fail

* code refine

[ROCm/composable_kernel commit: 2a73eb3bc0]
2025-11-13 16:21:09 -08:00
assistant-librarian[bot]
acd5abe4f1 Merge commit 'f2cfc6b94ee3154697030c4dfa214040bb4af4c9' into develop 2025-11-13 19:11:21 +00:00
SamiAario-AMD
376a62fcc1 Remove "basic" and universal GEMM tests, and incorporate their test cases into the GEMM pipeline tests (#3094)
* Add missing copyright statements

* Use ck_tile::host_tensor_descriptor instead of a custom lambda

* Refactor use of check_data_type in test classes

* Use TEST_SUITE_NAME with TYPED_TEST_SUITE

* Remove an unused namespace

* Make dim3 const

* Add BF8 x BF8 tests for CompV3 in test_gemm_pipeline_kernel_types.hpp

* Add F8 x BF8 tests for CompV3 in test_gemm_pipeline_kernel_types.hpp

* Add BF16 x I4 tests for CompV3 in test_gemm_pipeline_kernel_types.hpp

* Add BF16 x BF16 tests for CompV3 in test_gemm_pipeline_kernel_types.hpp

* Add BF8 x I4 tests for CompV3 in test_gemm_pipeline_kernel_types.hpp

* Add F8 x I4 tests for CompV3 in test_gemm_pipeline_kernel_types.hpp

* Add F16 x I4 tests for CompV3 in test_gemm_pipeline_kernel_types.hpp

* Skip failing tests of F16 x I4 for CompV3 with K == 2 * K_Tile

* Add missing precision type combinations to CompV4 from CompV3

* Move the INT8 tests around for consistency with KernelTypesCompV3Wmma

* Add missing precision type combinations to CompV3Wmma from CompV3

* Remove the basic and universal tests and their dependencies

* On __gfx950__, avoid using transposed loading of A with datatype pk_int4_t of B

* Use ADataType and BDataType instead of ComputeDataType for WarpGemm

* Explicitly set some return types to void

* Use more general typenames in InterleavedPKTypeLoader

* Add load_interleaved_pk_type.hpp to common.hpp

* Use std::is_same_v in load_int4_tile

* Add handling of LoadTranspose to load_int4_tile

* Factor out common code in several places using load_int4_tile

* Add support for pk_int4_t using load_int4_tile

* Fix formatting

[ROCm/composable_kernel commit: f2cfc6b94e]
2025-11-13 11:01:27 -08:00
assistant-librarian[bot]
0997e2eb6d Merge commit '7d57bc169f8206f06bc516a7f930f388def32347' into develop 2025-11-13 17:13:19 +00:00
Ville Pietilä
91f7d4ac75 [CK_BUILDER] Forward convolution builder improvements (#3179)
Proposed changes
Improve the forward convolution builder implementation and addressed leftover feedback left from PR #3138. Main changes

Refactored tests such that they reflect better the builder pattern. The templates and types for the convolution algorithm concepts are created via factory that facilitates programmatic creation of the device op instances.
Moved tests into anonymous namespace.
The convolution factory had lot of if-else constructs when CK Builder types were converted into CK library types. I had initially trouble in using static_assert in the default branch of switch as the static_assert was evaluated at compile time even for valid types. However, if we change the static_assert to throw "<error message>", it will result in a compile-time error only if the default branch is actually hit. This assumes that the function is consteval. Hence, changed all conversions in the convolution factory to use switch, which is more intuitive.
Removed the explicit device op definition from convolution signature and the corresponding predicate file. The device ops are defined by the corresponding concepts. This allowed to remove lot of boilerplate code from the convolution factory.
Adde inheritance and convolution algorithm specialization to handle device ops that are specialization of a more generic ones. The large tensor support is more naturally expressed by this pattern.
Added support for the FP8 data type.

* WIP: Builder for expected test results.

* Improve ckb fwd conv instance tests.

* clang-format

* Change if-else statements into switch in conv factory.

* Fix clang-formatting.

* Removed unnecessary includes.

* Added missing copyright.

* Remove explicit device op flag from from convolution signature.

* Add missing concept.

* Fix build.

* clang-format

* Add test for building conv fwd FP8 instances.

* Add missing header to instance traits.

* Clean-up recently added instances.

* Introduce inheritance and specialization.

* Use builder to build conv algorithm templates and types.

* clang-format

* Fix conv description tests.

---------

Co-authored-by: John Shumway <john.shumwayjr@gmail.com>

[ROCm/composable_kernel commit: 7d57bc169f]
2025-11-13 08:47:25 -08:00
assistant-librarian[bot]
46929142bf Merge commit 'ca2ee0eb8ae4069175df9e4731c7b0aed56d6c8d' into develop 2025-11-13 16:14:02 +00:00
jefyang1
1d2d82ed69 Fix test_gemm_multiply_multiply_wp_xdl_fp8 on gfx950 (#3191)
Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com>

[ROCm/composable_kernel commit: ca2ee0eb8a]
2025-11-13 09:32:54 -06:00
assistant-librarian[bot]
53556bf6cb Merge commit '8d50001b939691134a0b078ed15a41e22ee08bd0' into develop 2025-11-13 13:22:01 +00:00
Yi DING
a05514ca58 [CK_TILE] Improve F8F6F4 Scaled WarpGemm (#3197)
* [CK_TILE] Improve F8F6F4 Scaled WarpGemm

* Thanks, Copilot

[ROCm/composable_kernel commit: 8d50001b93]
2025-11-13 20:22:05 +08:00
assistant-librarian[bot]
76e50bb65b Merge commit 'fb41a7b73be5b686611e3bc75668cb8025252d8d' into develop 2025-11-13 08:15:17 +00:00
Khushbu Agarwal
0366389527 fixing ambiguous shuffle definitions (#3175)
Co-authored-by: Thomas Ning <Thomas.Ning@amd.com>

[ROCm/composable_kernel commit: fb41a7b73b]
2025-11-12 23:44:12 -08:00
Cong Ma
c86dee45e0 [CK TILE GEMM] Refactor block_scale_gemm examples (#3181)
* [CK TILE GEMM] Refactor block_scale_gemm examples

- Split cpp file to reduce building time
- Support multiple GemmConfig

* [CK TILE GEMM] Refactor block_scale_gemm examples

- Update Readme

* [CK TILE GEMM] Refactor block_scale_gemm examples

- Add support for rowcol and tensor GEMM operations

* [CK TILE GEMM] Refactor block_scale_gemm examples

- Update README

* [CK TILE GEMM] Refactor block_scale_gemm examples

- Set quant group size to (1, 1, 64) for targets excluding gfx950, where warp tile size (16, 16, 128) is incompatible.

[ROCm/composable_kernel commit: 6fd8ddabe7]
2025-11-12 23:43:40 -08:00
assistant-librarian[bot]
c36a71b050 Merge commit '9af30f04b65b8e50877d01ce8377a8cd581d462c' into develop 2025-11-13 07:13:36 +00:00
Thrupti Raj Lakshmana Gowda
537b3e1f00 Ck tile engine commons (#3166)
* Moving Preshuffle to commons

* Fixing Common Validations

* Addressing Review Comments

* Partial Rebasing

* Partial Rebasing

* Partial Rebasing

* Rebasing Complete

[ROCm/composable_kernel commit: 9af30f04b6]
2025-11-13 00:56:18 -06:00
assistant-librarian[bot]
f03d7dcf6e Merge commit '797ddfa41e5e2c45f9eea9e6c969ba528e5a9c39' into develop 2025-11-13 00:36:06 +00:00
Aviral Goel
01b89f8cab chore(copyright): update copyright header for test_data directory (#3194)
* chore(copyright): update copyright header for tile_engine directory

* chore(copyright): update copyright header for script directory

* chore(copyright): update copyright header for test_data directory

[ROCm/composable_kernel commit: 797ddfa41e]
2025-11-12 16:07:28 -08:00
John Afaganis
5652b8d145 Add C++17 deprecation warning to CHANGELOG.md (#3203)
* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

[ROCm/composable_kernel commit: 9342365713]
2025-11-12 16:05:53 -08:00
assistant-librarian[bot]
77527d2fa6 Merge commit '3784c0e7c395af214fdddd5f702691b354bfe8d4' into develop 2025-11-12 20:14:45 +00:00
Illia Silin
76306954ee add permissions for /tmp folder (#3201)
[ROCm/composable_kernel commit: 3784c0e7c3]
2025-11-12 11:47:07 -08:00