Skip to content

Commit

Permalink
Cleanup VMT
Browse files Browse the repository at this point in the history
* Drop alternative implementations
* Pick a SIMD-contigous access pattern
* Add more problem size configurations
* Measure performance in GB/s
* Add comments
  • Loading branch information
kuhar committed Oct 25, 2023
1 parent e39a78f commit 2fa87c8
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 734 deletions.
63 changes: 1 addition & 62 deletions benchmarks/vmt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,7 @@ uvkc_glsl_shader_permutation(
"vmt_i8.glsl"
PERMUTATION
"N0=[1|2|4]"
"K0=[8]"
"WG_X=64"
"WG_Y=[1|2|4]"
GLSLC_ARGS
"--target-env=vulkan1.1"
)

uvkc_glsl_shader_permutation(
NAME
vmt_promote_lhs_i8_shader_rdna3
SRC
"vmt_promote_lhs_i8.glsl"
PERMUTATION
"N0=[1|2|4]"
"K0=[8]"
"K0=[8|16|32]"
"WG_X=64"
"WG_Y=[1|2|4]"
GLSLC_ARGS
Expand All @@ -57,50 +43,3 @@ uvkc_cc_binary(
COPTS
-DUVKC_RDNA3
)

uvkc_cc_binary(
NAME
vmt_promote_lhs_main_rdna3
SRCS
"vmt_main.cc"
DEPS
::vmt_promote_lhs_i8_shader_rdna3
benchmark::benchmark
uvkc::benchmark::core
uvkc::benchmark::main
COPTS
-DUVKC_PROMOTE_RDNA3
)

#-------------------------------------------------------------------------------
# Grid strided vmt (RDNA3)
#-------------------------------------------------------------------------------

uvkc_glsl_shader_permutation(
NAME
grid_strided_vmt_i8_shader_rdna3
SRC
"grid_strided_vmt_i8.glsl"
PERMUTATION
"B0=[128|256]"
"N0=[1|2|4]"
"K0=[4|8|16]"
"WG_X=64"
"WG_Y=[1|2|4]"
GLSLC_ARGS
"--target-env=vulkan1.1"
)

uvkc_cc_binary(
NAME
grid_strided_vmt_main_rdna3
SRCS
"grid_strided_vmt_main.cc"
DEPS
::grid_strided_vmt_i8_shader_rdna3
benchmark::benchmark
uvkc::benchmark::core
uvkc::benchmark::main
COPTS
-DUVKC_RDNA3
)
106 changes: 0 additions & 106 deletions benchmarks/vmt/grid_strided_vmt_i8.glsl

This file was deleted.

Loading

0 comments on commit 2fa87c8

Please sign in to comment.