|
GNU Cross Compiler Example Using BASH Shell
Next, compile and link using either step 3 or step 4:
Now, run:
mpixlc usage is very similar to non-IBM mpich wrapper usage.
Note that step 4 uses environment variables to set compiler and linker flags. This particular example uses the -qsource compiler flag which will write the source code to the listing file that is produced, you should of course only use that flag if you want that. See Producing Compiler Listings for more information.
Next, compile and link using either step 3 or step 4:
Now, run:
mpicc usage is very similar to standard mpich wrapper usage.
Note that step 4 uses environment variables to set compiler and linker flags. This particular example compiles using compiler optimization level 2 (-O2), but the implication is not that you necessarily should or must use -O2. We have randomly chosen this flag simply to illustrate the use of environment variables to set flags.
This site maintained by: bgwebmaster@bnl.gov
|
|