The case USE="benchmark -test" omitted to copy the files rocsparse_common.yaml, rocsparse_template.yaml, rocsparse_gentest.py to clients/staging/ as expected by clients/CMakeLists.txt Index: rocSPARSE-rocm-5.7.1/clients/benchmarks/CMakeLists.txt =================================================================== --- rocSPARSE-rocm-5.7.1/clients/benchmarks/CMakeLists.txt.orig +++ rocSPARSE-rocm-5.7.1/clients/benchmarks/CMakeLists.txt @@ -203,5 +203,6 @@ # Set benchmark output directory set_target_properties(rocsparse-bench PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/staging") +add_dependencies(rocsparse-bench rocsparse-common) rocm_install(TARGETS rocsparse-bench COMPONENT benchmarks)