-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring cmake files to build data types separately. (#932)
* refactor cmake files for the tests * refactor cmake files for examples * fix cmake for gemm example * fix the cmake file for all examples * add splitting by data types in gemm_splitk instance header * rename test to reflect only dl instances are used * clean up CI workspace, update cmake for instances * change the jenkinsfile syntax * build all instances except DL on gfx11 * move workspace cleanup after stages * clean up workspace after every stage * isolate data types in grouped_conv_fwd header * isolate dl instances for grouped_conv2d_fwd * fix syntax * fix cmake and batchnorm instances * fix typo * fix reduction instances * fix grouped_conv headers * fix syntax * replace parsing logic for instances, replace bfp16 with bf16 * fix the client examples build * clean up DTYPES from instances cmake files * update the parsing logic in cmake files * make an exception for reduction kernels * update few remaining cmake files to handle DTYPES * fix syntax * fix cmake conflicts * replace f8 with fp8 test name * resolve conflicts for dpp instances
- Loading branch information
Showing
98 changed files
with
1,281 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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,2 @@ | ||
if(DTYPES MATCHES "fp16" OR NOT DEFINED DTYPES) | ||
add_example_executable(example_pool2d_fwd_fp16 pool2d_fwd_fp16.cpp) | ||
endif() | ||
if(DTYPES MATCHES "fp32" OR NOT DEFINED DTYPES) | ||
add_example_executable(example_pool2d_fwd_fp32 pool2d_fwd_fp32.cpp) | ||
endif() | ||
add_example_executable(example_pool2d_fwd_fp16 pool2d_fwd_fp16.cpp) | ||
add_example_executable(example_pool2d_fwd_fp32 pool2d_fwd_fp32.cpp) |
This file contains 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 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,36 +1,44 @@ | ||
add_custom_target(example_grouped_gemm_xdl) | ||
|
||
if(DTYPES MATCHES "fp32" OR NOT DEFINED DTYPES) | ||
add_example_executable(example_grouped_gemm_xdl_fp32 grouped_gemm_xdl_fp32.cpp) | ||
add_example_executable(example_grouped_gemm_xdl_fp32 grouped_gemm_xdl_fp32.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_fp32) | ||
endif() | ||
if(DTYPES MATCHES "fp16" OR NOT DEFINED DTYPES) | ||
add_example_executable(example_grouped_gemm_xdl_fp16 grouped_gemm_xdl_fp16.cpp) | ||
add_example_executable(example_grouped_gemm_multiple_d_dl_fp16 grouped_gemm_multiple_d_dl_fp16.cpp) | ||
add_example_executable(example_grouped_gemm_xdl_splitk_fp16 grouped_gemm_xdl_splitk_fp16.cpp) | ||
add_example_executable(example_grouped_gemm_xdl_fixed_nk_fp16 grouped_gemm_xdl_fixed_nk_fp16.cpp) | ||
add_example_executable(example_grouped_gemm_xdl_fixed_nk_bias_fp16 grouped_gemm_xdl_fixed_nk_bias_fp16.cpp) | ||
add_dependencies(example_grouped_gemm_xdl | ||
example_grouped_gemm_xdl_fp16 | ||
example_grouped_gemm_multiple_d_dl_fp16 | ||
example_grouped_gemm_xdl_splitk_fp16 | ||
example_grouped_gemm_xdl_fixed_nk_fp16 | ||
example_grouped_gemm_xdl_fixed_nk_bias_fp16) | ||
endif() | ||
if(DTYPES MATCHES "bf16" OR NOT DEFINED DTYPES) | ||
add_example_executable(example_grouped_gemm_xdl_bfp16 grouped_gemm_xdl_bfp16.cpp) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_bfp16) | ||
endif() | ||
if(DTYPES MATCHES "int8" OR NOT DEFINED DTYPES) | ||
add_example_executable(example_grouped_gemm_xdl_int8 grouped_gemm_xdl_int8.cpp) | ||
add_example_executable(example_grouped_gemm_xdl_fp16 grouped_gemm_xdl_fp16.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_fp16) | ||
endif() | ||
add_example_executable(example_grouped_gemm_multiple_d_dl_fp16 grouped_gemm_multiple_d_dl_fp16.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_multiple_d_dl_fp16) | ||
endif() | ||
add_example_executable(example_grouped_gemm_xdl_splitk_fp16 grouped_gemm_xdl_splitk_fp16.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_splitk_fp16) | ||
endif() | ||
add_example_executable(example_grouped_gemm_xdl_fixed_nk_fp16 grouped_gemm_xdl_fixed_nk_fp16.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_fixed_nk_fp16) | ||
endif() | ||
add_example_executable(example_grouped_gemm_xdl_fixed_nk_bias_fp16 grouped_gemm_xdl_fixed_nk_bias_fp16.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_fixed_nk_bias_fp16) | ||
endif() | ||
add_example_executable(example_grouped_gemm_xdl_bf16 grouped_gemm_xdl_bf16.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_bf16) | ||
endif() | ||
add_example_executable(example_grouped_gemm_xdl_int8 grouped_gemm_xdl_int8.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_int8) | ||
endif() | ||
if(DTYPES MATCHES "f8" OR NOT DEFINED DTYPES) | ||
add_example_executable(example_grouped_gemm_xdl_fixed_nk_fp8 grouped_gemm_xdl_fixed_nk_fp8.cpp) | ||
add_example_executable(example_grouped_gemm_xdl_fixed_nk_fp8 grouped_gemm_xdl_fixed_nk_fp8.cpp) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_fixed_nk_fp8) | ||
endif() | ||
|
||
if(USE_BITINT_EXTENSION_INT4) | ||
add_example_executable(example_grouped_gemm_xdl_int4 grouped_gemm_xdl_int4.cpp) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_int4) | ||
if(result EQUAL 0) | ||
add_dependencies(example_grouped_gemm_xdl example_grouped_gemm_xdl_int4) | ||
endif() | ||
endif() |
File renamed without changes.
Oops, something went wrong.