To create a new C/C++/Fortran OpenMP project from
scratch in SunStudio:
Open Sunstudio by right-clicking the desktop and
selecting SunStudio.
Go to File → New Project.
Under “Categories” select “C/C++/Fortran
Development”. Then under “Projects” select
“C/C++/Fortran Application” and press “Next”.
Fill in the name for the new project in the
“Project Name” field and press “Finish”.
In the project menu, right click the new project
and go to “Properties”.
Under the “Categories” menu select Configuration
Properties → C/C++/Fortran. Depending on the type of
project you want (C/C++/Fortran), click on the
appropriate compiler entry and select “Command Line”.
In the “Additional Arguments” field type:
-xopenmp=noopt -g and press “OK”.