"Fossies" - the Fresh Open Source Software Archive

Member "berkeley_upc-2019.4.2/upc-tests/gwu-npb-upc/BTIO/adi.c" (27 May 2019, 982 Bytes) of package /linux/misc/berkeley_upc-2019.4.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "adi.c" see the Fossies "Dox" file reference documentation.

    1 /*--------------------------------------------------------------------
    2   NAS Parallel Benchmarks 2.3 UPC version - BT source code tree
    3   2004 - GWU - HPCL -- check bt.c for complete information
    4   --------------------------------------------------------------------*/
    5 
    6 #include <stdio.h>
    7 #include <upc_relaxed.h>
    8 #include "functions.h"
    9 
   10 void adi(void)
   11 {
   12   /*--------------------------------------------------------------------
   13     --------------------------------------------------------------------*/
   14 #if( DEBUG == TRUE )
   15   if( MYTHREAD == 0 )
   16     printf(" (D) copy_faces()\n");
   17 #endif
   18   copy_faces();
   19   
   20 #if( DEBUG == TRUE )
   21   if( MYTHREAD == 0 )
   22     printf(" (D) x_solve()\n");
   23 #endif
   24   x_solve();
   25 
   26 #if( DEBUG == TRUE )
   27   if( MYTHREAD == 0 )
   28     printf(" (D) y_solve()\n");
   29 #endif
   30   y_solve();
   31 
   32 #if( DEBUG == TRUE )
   33   if( MYTHREAD == 0 )
   34     printf(" (D) z_solve()\n");
   35 #endif
   36   z_solve();
   37 
   38 #if( DEBUG == TRUE )
   39   if( MYTHREAD == 0 )
   40     printf(" (D) add()\n");
   41 #endif
   42   add();
   43 }