From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <9704250437.AA00551@maine.com> Date: Fri, 25 Apr 97 00:37:59 -0400 From: Harold H.Youngren Subject: Microway NDP f77 compiler, user comments... I had responded earlier to a question asking if someone on this list had any experience with the Microway NDP f77 compiler. The intent was to at least put some kind of user feedback on that compiler into the Linux/Alpha record. The discussion got sidetracked on fortran/f2c/g77/DEC f77 religious issues and later that same day Henry chih-hsiang Yao asked if anybody had tested the Microway NDP fortune compiler(??). I give up... Just so the non-contentious information is available here is what I know about the Microway NDP f77 compiler... Microway is selling an Alpha version of their NDP f77 compiler for Linux. I bought that from them and have installed and tested two compiler versions over the past year. Both of these were ECOFF compilers and both required patched Linux kernels to run NDP executables. I understand from Microway that the compiler is being updated to ELF although I have not seen an ELF version yet. The NDP compiler is internally a 32 bit compiler and emits 32 bit code. Hence the patch to the kernel to run the NDP executables in "low memory". The NDP compiler comes with a somewhat un-Unix like compiler driver that, among other things, does not understand the -L flag for library paths, instead you have to set an environment variable to point to the libraries, although this does not completely work either. I understand that the driver is being updated, although these peculiarities indicate that this product began (somewhere down the road) as a DOS compiler. The compiler comes with a very complete run time library including VAX extensions and most of the normal Unix f77 extensions. It supports records but not Cray pointers. The compiler also requires its own libc which, I suppose, is needed to support the 32 bit compiler run time. This presents a problem immediately to those (like me) who wish to mix fortran and C code. The NDP libc uses the same namespace as the GNU libc for Linux and is not compatible. If you try to link with the X libraries (for example) you run into a brick wall, the NDP objects cannot be linked to the native system libraries which use 64-bit pointers. The upshot of this is that the NDP compiler, in its current state, is essentially a stand-alone fortran environment, suitable for compiling and running bare fortran codes in a terminal window. In terms of performance I have only compiled a handful of codes and a few benchmarks with this compiler as most of my programs do some kind of X graphics or link with C routines somewhere along the line. The NDP optimized LINPACK (single precision, dimensioned to 400/401) runs at about 70-80 MFLOPS on my Screamer 21164 300mhz. In comparison the f2c/gcc combo gives about 40 MFLOPS on this machine and the best DEC f77 executable runs at 140 MFLOPS. One of the difficulties of using this compiler concerns the very long compile times when you crank up the optimization. The NDP compiler has a set of normal optimizations (common subexpression, loop invariant removal, etc) in a compiler phase they call "ABE" and a second optimization phase they call "GVS" which does vectorization and scheduling. To get beyond about 60 MFLOPS on the LINPACK benchmark you need to invoke the GVS phase and here the compile time really begins to get long. It helps to profile the code and edit out the routines which really need optimization, if you naively just turn on the GVS optimizer to the whole LINPACK program you might as just go to bed and let it run all night! If you only optimize SDOT, SAXPY and SSCAL you can do a bit better (10 minutes or more) but it still takes a long time. Steve Fried at Microway has apparently done a very complete optimization of the DAXPY routine (his favorite subject for compiler tuning adventures) and gotten similar speeds to that from the DEC compiler. >From a practical point of view the compile times are too long with any higher level of optimization (with vectorization and scheduling) so that I could not use this compiler to fully optimize any "real" code. I compiled a huge NASA CFD code with this compiler at a modest optimization level and it took over 4 hours to compile what took 15 minutes with DEC fortran at full optimization. I did not run this as a benchmark due to the problems of linking with the system libs because the NASA code used a few C routines for dynamic memory management. If I were more industrious I could have modified the NASA code to use the NDP f77 library routines for dynamic memory. Microway is in the process of rewriting their compiler for 64-bit internals to facilitate using the NDP compiler with the native gcc compiled libraries. I don't know when that will be available. The contact at Microway is Terri Klaila (508)-746-7341 who has been quite helpful. Hal Y. -- ************************************************************* * Harold Youngren ----> Internet: guppy@maine.com * * 129 Pitt St, or: guppy@netcom.com * * Portland, ME 04103 AeroCraft Consulting * * Home: (207)871-0552 Aeronautical Consulting, Analysis,* * Fax: (207)871-1034 Design, CFD software * ************************************************************* -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com