next up previous
Next: 8 Binary Distribution Up: ADAPTOR Installation Guide Previous: 6 The ADAPTOR Runtime

Subsections


7 The ADAPTOR Compiler Driver

The sources for the compiler driver \fbox{adaptor} are stored in the subdirectory src1. The sources are all written in C and should run on all UNIX machines.

The executable adaptor for the driver is generated by simply typing \fbox{make}.

   cd $PHOME/src1
   make

7.1 Configuration of the Compiler Driver

The comiler driver 6#1adaptor reads a configuration file .adaptorrc every time when it is called. It starts to look for such a file in the $PHOME directory where such a file is provided with the installation of ADAPTOR. This file will be automatically generated by the installation script configure. In the following, the different entries are explained.

In the configuration file, there is also the possibility to define compound flags that make any kind of ADAPTOR compilation more convenient. Some compound flags are already defined and should not be modified at all as they are needed for the test and example programs:

You get help and info about the actual configuration settings of adaptor with the commands:

      adaptor -help
      adaptor -settings

The flag -settings can be used in combination with other flags to get an overview of all flags and libraries that will be used for an ADAPTOR compilation.

  $  adaptor -openmp -pm=papi -trace=vt -settings
   ...
   current settings for driver: verbose = 0, dryrun = 0, keep = 0
      CPP_FLAGS        : -P -traditional
      FADAPT_FLAGS     : -omp -1
      FC_FLAGS         : -w -O
      LD_FLAGS (dalib) : -ladp_hpf_null -ladp_dm_null -ladp_sm_pthreads 
                         -ladp_pm_papi -ladp_trace_vt
      LD_FLAGS (user)  : -lpthread -lpapi -L/opt/vampirtrace-3.1.0.3/lib 
                         -lVT -ldwarf -lnsl -lm -lelf -lpthread -lPEPCF90


next up previous
Next: 8 Binary Distribution Up: ADAPTOR Installation Guide Previous: 6 The ADAPTOR Runtime
Thomas Brandes 2004-03-19