![]() |
![]() |
|||
![]() |
||||
![]() |
||||
![]() |
||||
Access to the computer systemsTable of contents
We recommend that you use the IceWM environment, unless you are familiar with the other environments available. A general introduction to the DTU computer system can be found on-line.
If you want to use your laptop computer: There is wireless network
available in the lecture room (SSID: DTU Wireless), and you
have to authenticate before you can connect to any service. Open a
browser and log in on the webpage that shows up.
/appl/htoolsTo activate the changes, you must log out and log in again. You can check if the setup was succesful by opening a terminal window and running the command: f95 -V. The output should look like this: f95: Sun Fortran 95 8.3 SunOS_sparc Patch 127000-0...This is the Fortran 95 compiler of the Sun Studio 12 development tools. Sun Studio comes with an Integrated Development Environment (IDE), that can be started with the sunstudio command from a terminal window. Compiling MPI programsThere a special compiler commands (wrapper scripts) to compile MPI code: mpcc, mpCC, mpf90 and mpf77. Those scripts setup the compile environment for MPI codes, i.e. include path, path to the MPI libraries, etc. However, you will need to add the MPI library when linking your MPI program, e.g.mpf90 -o mympiprog src1.o src2.o -lmpiTo run the program, you have to use the mprun command, i.e. mprun -np 4 mympiprogwill run the program on 4 CPUs. Useful commandsCheck the loadTo get information about the load and the capacity of the machine(s) you are using, you can compare the load of the machine uptimewith the number of CPUs available cpucount Example: erlang(fmpi10): uptime 4:53pm up 6 day(s), 20:24, 11 users, load average: 6.40, 6.40, 6.38 erlang(fmpi10): cpucount 48This shows that the machine in question has 48 active CPUs, and the load is about 6, i.e. there are 42 ``free'' CPUs available. MPI job status and control To stop your MPI process, you have to use a special kill command for MPI: mpkill jidwhere the jid is the MPI job id. This identifier can be found with the mppscommand. Example: erlang(fmpi10): mpps JOBNAME NPROC UID STATE AOUT cre.3033 8 fmpi10 RUN sleep erlang(fmpi10): mpkill cre.3033 Using the Sun Performance Analyzer with MPITo use the Sun Studio Performance Analyzer on MPI programs, you should do the following:
PrintingThere is a printer in the lecture room and its name is gps1-321. For more information how to print from the Sun computers, see the Printing Guide. Please note: We use a special program called xpp to submit print jobs. The standard UNIX commands might not always work! |
Fortran and MPICourse material:· Description · Participants · Teachers · Agenda · Registration · Material · Organizers · Brochure (PDF) |
|||
![]() |
All material on this page and subpages are copyright © DCAMM
|
![]() |