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
1.6 KiB
1.6 KiB
MIOpen Provider Plugin - Performance Characteristics
Algorithm Selection Behavior
Lazy Algorithm Selection for Convolution Operations
The MIOpen Provider Plugin performs algorithm selection during the first execution of convolution plans, rather than during plan construction. This is necessary because MIOpen's algorithm selection APIs require actual device memory buffers to benchmark candidate kernels, which are only available during plan execution.
Affected Operations
- Convolution Forward (Conv Fwd)
- Convolution Backward Data (Conv Bwd)
- Convolution Backward Weights (Conv Wrw)
Performance Impact
| Execution | Performance | Notes |
|---|---|---|
| First | May be slower | Algorithm selection overhead (small unless benchmarking is enabled) |
| Subsequent | Normal performance | Uses cached algorithm selection |
The first execution performs algorithm selection. The overhead is typically small, but if benchmarking is enabled, kernel benchmarking adds significant overhead. All subsequent executions use the cached selection and execute at normal speed.
Monitoring
The plugin logs when algorithm selection occurs:
Convolution Fwd: Performing algorithm selection (first execution)
Convolution Fwd: Selected algorithm=1, time=2.45, workspace_size=8388608
Best Practices
For latency-sensitive applications:
- Perform a "warm-up" execution during initialization
- Separate first-execution timing from performance metrics
For optimal performance:
- Reuse plan instances across multiple executions
- Algorithm selection is thread-safe and occurs only once per plan instance