10 More Discussions You Might Find Interesting
1. Programming
Hi.
I wrote a small programm which shows me display's refresh rate
#include "stdafx.h"
#include "windows.h"
#include "iostream"
using namespace std;
int _tmain(int cout)
{
HDC hDCScreen = GetDC(NULL);
int RefreshFrequency = GetDeviceCaps(hDCScreen, VREFRESH);
ReleaseDC(NULL, hDCScreen);... (1 Reply)
Discussion started by: urello
1 Replies
2. Shell Programming and Scripting
wondering if anyone has any thoughts to convert the below thru a shell script
Convert decimal signalling point notation to ANSI point code notation
There is a site that does that conversion but i need to implement the solution in a shell script.....Thoughts....
OS: Solaris 9
... (4 Replies)
Discussion started by: aavam
4 Replies
3. Shell Programming and Scripting
First let me explain the scenario
I have tywo files as usual
file1.txt (it has n rows and 8 columns)
$1 $2 $3 $4 $5 $6 $7 $8
Code:
1234567|iufgt|iuoy|iout|white |black |red |90879
1234567|iufgt|iuoy|iout|green |pink |blue |90879... (3 Replies)
Discussion started by: s.deepak
3 Replies
4. Programming
I follow the description of wiki (Lamport's bakery algorithm - Wikipedia, the free encyclopedia), then implement that algorithm in C, but it doesn't work, Starving is still here, is the implementation worry?
Only print out:
Thread ID: 0 START!
Thread ID: 0 END!
Thread ID: 0 START!... (2 Replies)
Discussion started by: sehang
2 Replies
5. UNIX for Dummies Questions & Answers
Hi there,
I have written the shell script to illustrate arithmetic operations using case command as shown below:
#!/bin/bash
echo -n "Enter any two numbers :"
read a
read b
MENU="
Select any one option
1) Addition
2) Substraction
3) Multiplication
4) Division
5) Quit"
clear
$x=0;... (5 Replies)
Discussion started by: grc
5 Replies
6. UNIX and Linux Applications
Hi all,
I downloaded the source code for a pkg.
But i dont know how to build from it?
I have no prior experience in building from source,so could you pls help me?
I tried ./configure(after entering into the dir containing the src codes)
but it generated some errors!!!!!
Some files... (1 Reply)
Discussion started by: wrapster
1 Replies
7. Shell Programming and Scripting
I am unable to compile the programs, I am able to compile .pc to .c but later part of the compilation from .c to executalbe i am unable to do.
Here is the way i am doing
make -f $LIB_LIB/makefile.templ sample
I am getting the following errors, which environment and where to set to point... (1 Reply)
Discussion started by: satvd
1 Replies
8. Shell Programming and Scripting
Hi,
I am creating a file in Unix using a shell script. The file is getting created in the Unix - ANSI format. My requirement is to convert it to the PC - ANSI format. Can anyone tell me how to do this?
Thanks,
Sunil (0 Replies)
Discussion started by: ssmallya
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
My name is vreddy and I am learning c language now and written one programme on vi editor.
how do I compile the programme please give me some advice and that would be helpfull for me.
thanks
vre (10 Replies)
Discussion started by: vasudeva
10 Replies
10. Filesystems, Disks and Memory
How can I compile a code that can be runned on boot:?? (2 Replies)
Discussion started by: d4n1l0d
2 Replies
mpif90(1) MPI mpif90(1)
NAME
mpif90 - Compiles and links MPI programs written in Fortran 90
DESCRIPTION
This command can be used to compile and link MPI programs written in Fortran. It provides the options and any special libraries that are
needed to compile and link MPI programs.
It is important to use this command, particularly when linking programs, as it provides the necessary libraries.
COMMAND LINE ARGUMENTS
-show - Show the commands that would be used without runnning them
-help - Give short help
-f90=name
- Use compiler name instead of the default choice. Use this only if the compiler is compatible with the MPICH library (see below)
-config=name
- Load a configuration file for a particular compiler. This allows a single mpif90 command to be used with multiple compilers.
-compile_info
- Show the steps for compiling a program. This option can be used to see what options and include paths are used by mpif90.
-link_info
- Show the steps for linking a program. This optoin can be used to see what options and libraries are used by mpif90.
-profile=name
- Use the MPI profiling given by name. See below for details
-mpe=name
- Use an MPE profiling library. The behavior is similar to using -profile=mpe_name.conf .
-echo - Show exactly what this program is doing. This option should normally not be used.
others - are passed to the compiler or linker. For example, -c causes files to be compiled, -g selects compilation with debugging on most
systems, and -o name causes linking with the output executable given the name name .
ENVIRONMENT VARIABLES
The environment variables MPICH_F90 may be used to select different Fortran compiler and linker. Note that since MPICH is built with a
particular C and Fortran compiler, change the compilers used can cause problems. Use this only if you could intermix code compiled with
the different compilers.
COMPATIBLE COMPILERS
The MPI library may be used with any compiler that uses the same lengths for basic data objects (such as long double ) and that uses com-
patible run-time libraries. On many systems, the various compilers are compatible and may be used interchangably. There are exceptions;
if you use the MPICH_F90 environment variable or the -f90=name command-line argument to override the choice of compiler and encounter prob-
lems, try reconfiguring MPICH2 with the new compiler and installing MPICH2 in a separate location. See the installation manual for more
details.
EXAMPLES
To compile a single file foo.f , use
mpif90 -c foo.f
To link the output and make an executable, use
mpif90 -o foo foo.o
Combining compilation and linking in a single command
mpif90 -o foo foo.f
is a convenient way to build simple programs.
SELECTING A PROFILING LIBRARY
The -profile=name argument allows you to specify an MPI profiling library to be used. name can have two forms:
A library in the same directory as the MPI library
The name of a profile configuration file
If name is a library, then this library is included before the MPI library. This allows the simple use of libraries that make use of the
MPI profiling interface and that are installed in the same directory as the MPI library.
If name.conf is the name of a file in the sysconfdir directory, then this is read and may define the following variables:
PROFILE_PRELIB
- Libraries (and paths) to include before the MPI library
PROFILE_POSTLIB
- Libraries to include after the MPI library
PROFILE_INCPATHS
- C preprocessor arguments for any include files For example, to add /usr/local/myprof/include to the include path and the library
libmyprof.a in /usr/local/myprof/lib to the link step, you could create the file myprof.conf with the lines
PROFILE_PRELIB="-L/usr/local/myprof/lib -lmyprof"
PROFILE_INCPATHS="-I/usr/local/myprof/include"
and place it in the sysconfdir directory (this directory is set at configure time when MPICH is built). Then using the command-line
argument -profile=myprof will cause these definitions to be added to the relevant compile commands.
SEE ALSO
mpicc, mpicxx, mpif90, mpiexec
LOCATION
mpif90.txt
11/2/2007 mpif90(1)