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
Fractal sample
The example calculates two classical Mandelbrot fractals with different concurrency levels.
The application window is divided into two areas where fractals are rendered. The example also has the console mode.
Building the example
cmake <path_to_example> [EXAMPLES_UI_MODE=value]
cmake --build .
Predefined CMake variables
EXAMPLES_UI_MODE- defines the GUI mode, supported values aregdi,d2d,conon Windows,x,conon Linux andmac,conon macOS. The default mode iscon. See the common page to get more information.
Running the sample
Predefined make targets
make run_fractal- executes the example with predefined parameters.make perf_run_fractal- executes the example with suggested parameters to measure the oneTBB performance.make light_test_fractal- executes the example with suggested parameters to reduce execution time.
Application parameters
Usage:
fractal [n-of-threads=value] [n-of-frames=value] [max-of-iterations=value] [grain-size=value] [use-auto-partitioner] [silent] [single] [-h] [n-of-threads [n-of-frames [max-of-iterations [grain-size]]]]
-h- prints the help for command line options.n-of-threads- the number of threads to use; a range of the form low[:high], where low and optional high are non-negative integers orautofor a platform-specific default number.n-of-frames- the number of frames the example processes internally.max-of-iterations- the maximum number of the fractal iterations.grain-size- the optional grain size, must be a positive integer.use-auto-partitioner- use oneapi::tbb::auto_partitioner.silent- no output except elapsed time.single- process only one fractal.
Interactive graphical user interface
The following hot keys can be used in interactive execution mode when the example is compiled with the graphical user interface:
left mouse button- make the fractal active.w- move the active fractal up.a- move the active fractal to the left.s- move the active fractal down.d- move the active fractal to the right.q- zoom in the active fractal.e- zoom out the active fractal.r- increase quality (count of iterations for each pixel) the active fractal.f- decrease quality (count of iterations for each pixel) the active fractal.esc- stop execution.