|
After you installed Intel® Threading Building Blocks on your computer you may want to check if it got set up properly. Product liveness test fibonacci may be used for this purpose. This test program covers every major aspect of the library. Follow the instructions below to run liveness test.
Note: Similar instructions will work for other product samples.
How to Run Examples on Linux* or Mac OS* Systems
- Install the software (e.g., into <installdir>).
- Set up the environment in your shell.
For sh/bash/ksh: <installdir>/bin/tbbvars.sh For csh/tcsh: source <installdir>/bin/tbbvars.csh
Note: Always source the tbbvars.* scripts by using one of the above commands; do not execute them directly. This step is only required once per shell window used.
- Compile and run an example (e.g., <installdir>/examples/test_all/fibonacci).
cd <installdir>/examples/test_all/fibonacci make
How to Run Examples on Windows* Systems when Using Visual Studio*
Note: This example uses Visual Studio* .NET 2003. However, Visual Studio 2005 is similarly supported (using the same vc7.1 examples).
- Install the software (e.g., into <installdir>).
Note: it is strongly recommended that you check the checkbox, during the install, to register environment variables.
- Open a command-prompt (cmd.exe) window that has the right environment defined for using Visual Studio*. For example, click Start and then use Programs » Microsoft Visual Studio .NET 2003 » Visual Studio .NET Tools » Visual Studio .NET 2003 Command Prompt.
- Exit Visual Studio, if it is currently running.
- If you did not check the checkbox, during the install, to register environment variables, then set up the environment in your shell.
<installdir>\{ia32,em64t}\vc7.1\bin\tbbvars.bat Note: This step is only required once per command-prompt window used.
- Compile and run an example (e.g., <installdir>/examples/test_all/fibonacci).
cd <installdir>\examples\test_all\fibonacci\vc7.1 devenv Fibonacci.sln /useenv
Note: This step invokes Visual Studio* and loads the project for the example while importing the environment that was set up above.Press <F5> to compile and run the example.
How to Run Examples on Windows* Systems when Using the Command Line
Note: This example uses Visual Studio .NET 2003 (Visual C++* v7.1). However, Visual Studio 2005 (Visual C++* v8) is similarly supported (using the same vc7.1 examples).
- Install the software (e.g., into <installdir>).
Note: It is strongly recommended that you check the checkbox, during the install, to register environment variables.
- Open a command-prompt (cmd.exe) window that has the right environment defined for using Visual Studio*. For example, click Start and then use Programs » Microsoft Visual Studio .NET 2003 » Visual Studio .NET Tools » Visual Studio .NET 2003 Command Prompt.
- If you did not check the checkbox, during the install, to register environment variables, then set up the environment in your shell.
<installdir>\{ia32,em64t}\vc7.1\bin\tbbvars.bat
- Compile and run an example (e.g., <installdir>/examples/test_all/fibonacci).
cd <installdir>\examples\test_all\fibonacci nmake
This applies to:
|