A new project can be created using the top menu of VS 2005 and choosing either
File | New | Project or File | Add New Project.
This will produce a popup window (see below) with many choices; only a few are appropriate for
our Windows cluster environment. There are a large number of compilers/languages that can be
chosen for projects, but a project can only contain source code written in one language.
There are two main choices for project type for creating executables to run on the CTC cluster:
- Visual C++ Projects (cl, icl)
Within Visual C++ Projects the folder "Win32" contains two choices: Win32 Console
Application and Win32 Project. Either will work.
The Location tab specifies the folder where the the project folder
will be created. By default the Name determines the name of the
project folder. You can also specify a solution folder where you want the project
folder to be located by clicking on the box adjacent to "Create directory for solution"
and providing a Solution Name. You would want to do this when you have
a number of projects within a solution; otherwise you will wind up with two folders with the
same name, one inside the other.
After providing a name for the project and clicking on OK, the
Win32 Application Wizard will appear with the chance to change the Application Settings
before the project is created. Click on either Application Settings
or Next> and choose either Console application,
DLL or Static library. Do not choose a
Windows application, since you can not see a GUI on the compute nodes.
Unless you like mindless code that you didn't write, check the Empty Project
box under Additional options:.
- Intel(R) Fortran Projects (ifort)
The Fortran projects offer five templates: Console Application, QuickWin Application,
Windows Application, Dynamic-link Library (.dll) or Static Library (.lib).Avoid the
QuickWin and Windows Applications. They will try to create a GUI for your application,
which won't be of any use to you on our Windows cluster.
The Location tab specifies the folder where the the project folder
will be created. By default the Name determines the name of the
project folder. You can also specify a solution folder where you want the project
folder to be located by clicking on the box adjacent to "Create directory for solution"
and providing a Solution Name. You would want to do this when you have
a number of projects within a solution; otherwise you will wind up with two folders with the
same name, one inside the other.
After providing a name for the project and clicking on OK, the
Fortran Console Application Wizard will appear with the chance to change the Application
Settings before the project is created. Click on either Application Settings
or Next> and check the Empty Project box under
Additional options:.
Once you have created a project, you can create a new file Project | Add New Item... (Ctrl+Shift+A)
or add existing files to this project Project | Add Existing Item... (Shift+Alt+A)
through the Project dialog box.
If your program contains both C and Fortran code, chose the project type based on the language used
for the main program. Use a static library project for the secondary language.
Building for Itanium and x64 is supported transparently in Visual Studio 2005. Please talk to a
consultant if you are interested in building for one of these platforms.