Overview

The example calculates two classical Mandelbrot fractals with different priorities. The application window is divided into two areas where fractals are rendered. With mouse click on an area the user can change the priority of the calculating fractal. In the clicked area the fractal priority is changed to be "high" and the priority of the other fractal is changed to "normal". The example also has the console mode but in this mode the priorities could not be changed during execution.

Files

main.cpp
Main program which parses command line options and runs the fractals calculation in GUI or Console mode.
fractal.h
Interfaces of fractal and fractal_group classes.
fractal.cpp
Implementations of fractal and fractal_group classes.
fractal_video.h
GUI mode support interface.
Makefile
Makefile for building example.

Directories

msvs
Contains Microsoft* Visual Studio* 2005 workspace for building and running the example (Windows* systems only).
xcode
Contains Xcode* IDE workspace for building and running the example (OS X* systems only).

To Build

General build directions can be found here.

Usage

fractal -h
Prints the help for command line options
fractal [n-of-threads=value] [n-of-frames=value] [max-of-iterations=value] [grain-size=value] [silent] [single]
fractal [n-of-threads [n-of-frames [max-of-iterations [grain-size]]]] [silent] [single]
n-of-threads is the number of threads to use; a range of the form low[:high], where low and optional high are non-negative integers or 'auto' for the TBB default.
n-of-frames is a number of frames the example processes internally.
max-of-iterations is a maximum number of the fractal iterations.
grain-size is an optional grain size, must be a positive integer.
use-auto-partitioner - use tbb::auto_partitioner.
silent - no output except elapsed time.
single - process only one fractal.
To run a short version of this example, e.g., for use with Intel® Parallel Inspector:
Build a debug version of the example (see the build directions).
Run it with a small fractal iterations number and the desired number of threads, e.g., fractal 4 1 10000.

Up to parent directory

Copyright © 2005-2014 Intel Corporation. All Rights Reserved.

Intel is a registered trademark or trademark of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.