Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Mlp fusion (#299)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Ding, Yi1 <[email protected]>
  • Loading branch information
zhewang1-intc and DDEle authored Jul 16, 2024
1 parent 7848595 commit 40e7835
Show file tree
Hide file tree
Showing 7 changed files with 1,406 additions and 21 deletions.
1 change: 1 addition & 0 deletions tests/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ add_subdirectory(limitation)
add_subdirectory(softmax)
add_subdirectory(fmha)
add_subdirectory(col_major_shuf)
add_subdirectory(mlp)
2 changes: 1 addition & 1 deletion tests/integration/gemv/int4/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class test_col_major_1 {
public:
// Extract the parameters required by different test cases
static constexpr size_t mat_m = 1;
static constexpr size_t mat_n = 4096;
static constexpr size_t mat_n = 11008;
static constexpr size_t mat_k = 4096;
static constexpr size_t wg_m = 1;
static constexpr size_t wg_n = 1;
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/mlp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include_directories(${CMAKE_SOURCE_DIR}/tests/integration/mlp)

add_subdirectory(int4)
5 changes: 5 additions & 0 deletions tests/integration/mlp/int4/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(TARGET int4_mlp)

#build test
# add_integration_test(${ProjectId} ${src}) # TODO: make it as a integration_test target
add_executable(${TARGET} mlp.cpp)
Loading

0 comments on commit 40e7835

Please sign in to comment.