next up previous contents index
Next: C. Appendix: Runtime Options Up: ADAPTOR Users Guide Previous: A. Appendix: The fadapt   Contents   Index

B. Appendix: The adaptor Compiler Driver

Table 6 describes the options for the compiler driver adaptor.


Table 6: Available options for adaptor.
-o <outfile> name of ouput file (default is a.out or file.o)
-v verbose mode
-help prints help for available options
-settings prints the actual settings
-dryrun shows commands without executing them
-keep do not remove intermediate files
-Wcpp"[cpp_opt]" passing options cpp_opt to cpp preprocessor
-I... passed to cpp (also to fadapt and fc)
-Dname[=def] macro definition passed to cpp preprocessor
-skip_fadapt skips ADAPTOR phase (only native compilation)
-Wa"[fadapt_opt]" passing options to fadapt translation
-I... passed to fadapt (also to cpp and fc)
-free input file has free source format
-extend accept input file with 132 characters
-mp forces local variables to be put on the stack
-Wf"[fortran_opt]" passing options to Fortran compilation
-free" free source format for input file
-c suppresses link step
-Wcpp"[cpp_opt]" passing options to cpp preprocessor
-Wl"[link_opt]" passing options to the linker
-L... option passed to link step
-l... option passed to link step
-hpflib link ADAPTOR HPF runtime librarys
-mpi link MPI library
-dm=mpi -mpi and links interface -ladp_dm_mpi
-pthreads links PThreads library
-mp=pthreads -pthreads and links interface -ladp_mp_pthreads
-papi links PAPI library
-pm=papi -papi and links interface -ladp_pm_papi
-pcl links PCL library
-pm=pcl -pcl and links interface -ladp_pm_pcl
-vt links VampirTrace library
-trace=vt -vt and links interface -ladp_trace_vt
-vtsample links VampirTrace library with sampling
-trace=vtsample -vtsample and links interface -ladp_trace_vtsample
-vtsp links VampirTrace library for single processor (no MPI trace)
-trace=vtsp -vtsp and links interface -ladp_trace_vtsp


Table 7 shows typical examples of compound options for the compile driver adaptor.


Table 7: Compound options for adaptor.
-hpf_1 -Wa"-HPF"
-hpf -Wa"-HPF" -hpflib
-omp -Wa"-OMP"
-dm -Wa"-dm" -dm=mpi
-sm -Wa"-sm" -sm=pthreads
-cb -Wa"-cb"
-openmp -Wa"-OMP -sm" -sm=pthreads
-instr -Wa"-INSTR"
-dinstr -Wa"-DINSTR"
-instr_openmp -Wa"-INSTR" -Wf"-openmp" -Wl"-openmp" -sm=omp
-instr_mpi -I/opt/mpich/include -Wa"-INSTR" -hpflib -dm=mpi


Table 8 summarizes the variables for the adaptor driver that can be set in the configuration file .adaptorrc.


Table 8: Configuration variables in .adaptorrc.
DM:mpi flags to link MPI for DM parallelism, e.g. -L/opt/mpich/lib -lmpich
SM:pthreads flags to link PThreads libraray, e.g. -lpthread
PM:papi flags to link PAPI for performance monitoring, e.g. -lpapi
PM:pcl flags to link PCL for performance monitoring, e.g. -lpcl
TRACE:vt link flags for VampirTrace
TRACE:vtsample link flags for VampirTrace with sampling
TRACE:vtsp link flags for VampirTrace, single processor only
CPP Fortran preprocessor
CPP_FLAGS link options for linking PThreads libraray
FC Target Fortran compiler
FC_FREE Fortran compiler option for free source format
FC_EXTEND Fortran compiler option for extend source format
FC_EXTEND_LENGTH relevant columns for extend source format
FC_OPT best optimization flags for Fortran compiler
FC_MP flag for putting local variables on stack
FC_FLAGS other relevant compiler flags
LD linker
LD_FLAGS additional flags for linker



next up previous contents index
Next: C. Appendix: Runtime Options Up: ADAPTOR Users Guide Previous: A. Appendix: The fadapt   Contents   Index
Thomas Brandes 2004-03-19