Skip to content

Commit

Permalink
First draw of a Benchmarking framework
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-pelegrin-arm committed Sep 19, 2024
1 parent 681a117 commit 9089c13
Show file tree
Hide file tree
Showing 44 changed files with 1,256 additions and 122 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
cmake_minimum_required(VERSION 3.13)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
enable_testing()
project(tracetooltests)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)

if(NOT DEFINED WINDOWSYSTEM) # to prevent overwriting toolchain setting
set(WINDOWSYSTEM "x11" CACHE STRING "Window system to use for build")
Expand Down Expand Up @@ -48,7 +47,8 @@ set(SYMLINK_DIR "$ENV{HOME}/.local/share/benchmarking")
install(DIRECTORY DESTINATION "${SYMLINK_DIR}")

function(gles_test test_name)
add_executable(gles_${ARGV0} src/util.cpp src/util.h src/gles_${ARGV0}.cpp src/gles_common.cpp src/gles_common.h)
add_executable(gles_${ARGV0} src/util.cpp src/util.h src/gles_${ARGV0}.cpp src/gles_common.cpp src/gles_common.h
src/benchmarking/generated_benchmarking.hpp src/benchmarking/generated_benchmarking.cpp src/benchmarking/benchmarking.hpp src/benchmarking/benchmarking.cpp)
target_link_libraries(gles_${ARGV0} PRIVATE -Wl,--add-needed EGL GLESv2 pthread ${IT_LIBS})
target_link_directories(gles_${ARGV0} PRIVATE ${API_LIBS})
target_compile_definitions(gles_${ARGV0} PUBLIC ${IT_DEFINES})
Expand All @@ -63,7 +63,8 @@ endfunction()

function(vulkan_test_build test_name)
add_executable(vulkan_${ARGV0} src/vulkan_${ARGV0}.cpp src/vulkan_common.cpp src/vulkan_common.h src/vulkan_compute_common.cpp src/vulkan_compute_common.h
src/vulkan_window_common.cpp src/vulkan_window_common.h src/util.cpp src/util.h)
src/vulkan_window_common.cpp src/vulkan_window_common.h src/util.cpp src/util.h
src/benchmarking/generated_benchmarking.hpp src/benchmarking/generated_benchmarking.cpp src/benchmarking/benchmarking.hpp src/benchmarking/benchmarking.cpp)
target_link_libraries(vulkan_${ARGV0} PRIVATE vulkan pthread ${IT_LIBS} ${XCB_LIBRARIES})
target_link_directories(vulkan_${ARGV0} PRIVATE ${API_LIBS})
target_compile_definitions(vulkan_${ARGV0} PUBLIC ${IT_DEFINES})
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_as_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_as_2.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_as_3.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_as_4.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_as_5.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_compute_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_compute_2.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_compute_3.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_compute_aliasing.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_compute_bda_pushconstant.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_compute_bda_sc.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_copying_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_copying_2.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_copying_3.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_debug_marker.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_debug_report.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_feature_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_feature_2.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_general.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_init.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_memory_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_memory_1_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_multidevice_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_multiinstance.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_pipelinecache_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_pnext_chain.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_stress_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_thread_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_thread_2.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_thread_3.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_tool_1.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
3 changes: 2 additions & 1 deletion benchmarking/vulkan_xfb.bench
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"vulkan_variant": {
"description": "Set Vulkan variant",
"type": "selection",
"options": [ "1.0", "1.1", "1.2", "1.3" ]
"options": [ "1.0", "1.1", "1.2", "1.3" ],
"default": "1.0"
}
},
"capabilities": {
Expand Down
Loading

0 comments on commit 9089c13

Please sign in to comment.