Files
TheRock/rocm-systems/projects/rocprofiler-compute/tests/generate_workloads.sh
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

62 lines
2.5 KiB
Bash
Executable File

#!/bin/bash
declare -A commands=(
[path]=' '
[no_roof]='--no-roof'
[kernel_names]='--roof-only'
[device_filter]='--device 0'
[kernel]='--kernel vecCopy'
[ipblocks_SQ]='-b cu_ins cu_pipe'
[ipblocks_SQC]='-b ins_cache sl1d'
[ipblocks_TA]='-b tatd'
[ipblocks_TD]='-b tatd'
[ipblocks_TCP]='-b vl1d'
[ipblocks_TCC]='-b l2 l2_per_channel'
[ipblocks_SPI]='-b spi'
[ipblocks_CPC]='-b cpc'
[ipblocks_CPF]='-b cpc'
[ipblocks_SQ_CPC]='-b cu_ins cu_pipe cpc'
[ipblocks_SQ_TA]='-b cu_ins cu_pipe tatd'
[ipblocks_SQ_SPI]='-b cu_ins cu_pipe spi'
[ipblocks_SQ_SQC_TCP_CPC]='-b cu_ins cu_pipe ins_cache sl1d vl1d cpc'
[ipblocks_SQ_SPI_TA_TCC_CPF]='-b cu_ins cu_pipe spi tatd l2 l2_per_channel cpc'
[dispatch_0]='--dispatch 1'
[dispatch_0_1]='--dispatch 1:3'
[dispatch_2]='--dispatch 2'
[kernel_verbose_0]='--kernel-verbose 0'
[kernel_verbose_1]='--kernel-verbose 1'
[kernel_verbose_2]='--kernel-verbose 2'
[kernel_verbose_3]='--kernel-verbose 3'
[kernel_verbose_4]='--kernel-verbose 4'
[kernel_verbose_5]='--kernel-verbose 5'
[join_type_grid]='--join-type grid'
[join_type_kernel]='--join-type kernel'
[sort_dispatches]='--roof-only --sort dispatches'
[sort_kernels]='--roof-only --sort kernels'
[mem_levels_HBM]='--roof-only --mem-level HBM'
[mem_levels_L2]='--roof-only --mem-level L2'
[mem_levels_vL1D]='--roof-only --mem-level vL1D'
[mem_levels_LDS]='--roof-only --mem-level LDS'
[mem_levels_HBM_LDS]='--roof-only --mem-level HBM LDS'
[mem_levels_vL1d_LDS]='--roof-only --mem-level vL1D LDS'
[mem_levels_L2_vL1d_LDS]='--roof-only --mem-level L2 vL1D LDS'
#########################################################
# Attempt to break rocprofiler-compute #
#########################################################
[dispatch_7]='--dispatch 7'
[dispatch_6_8]='--dispatch 6:8'
[dispatch_inv]='--dispatch invalid'
[kernel_substr]='--kernel vecCopy'
[kernel_inv_str]='--kernel vecPaste'
[kernel_inv_int]='--kernel 42'
[device_inv]='--device invalid' # does not generate a workload
[device_inv_int]='--device -1'
)
soc=MI300X_A1
echo "starting"
for key in "${!commands[@]}"; do
echo profiling $key;
command="${commands[$key]}"
echo "$key = ./src/rocprof-compute profile -n $key ${dirs[@]}"
./src/rocprof-compute profile -n $key $command --output-directory tests/workloads/$key/$soc -- ./tests/vcopy -n 1048576 -b 256 -i 3 ;
echo "done" ; done