Re: UPC with Sun backend compiler

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Mon Dec 21 2009 - 23:58:16 PST

  • Next message: Paul H. Hargrove: "Re: UPC with Sun backend compiler"
    Nikita,
    
      I have installed "SunStudio 12 Update 1" for Linux on my workstaation 
    and am trying to reproduce your problem w/ dbg_inst and opt_inst.  So 
    far, I cannot (and I get an assertion failure inside Sun's compiler 
    compiling GASNet instead).
    
      While I can't repdoduce your error, I *have* resolved the excessive 
    E_PASTE_RESULT_NOT_TOKEN warnings with the attached patch.
    
    -Paul
    
    Andreev Nikita wrote:
    > Paul,
    >
    > I tried compiling without dbg_inst and opt_inst and it went w\o errors.
    >
    > But when I compile UPC apps it shows warnings (attachment). I also saw
    > these warnings during runtime compilation. It creates executables and
    > runs well though.
    >
    > Nikita
    >
    >   
    >> Nikita,
    >>     
    >
    >   
    >>   We have successfully used various older Sun compilers for Linux, but
    >> nothing as recent as what you report.  I will look into this some more
    >> when I can.  However, the error message after a large number of warnings is
    >>     
    >
    >   
    >>     "/home/nikita/install/berkeley_upc-2.10.0/upcr_profile.c", line 36:
    >> left operand must be modifiable lvalue: op "="
    >>     
    >
    >   
    >> but line 36 is
    >>     return info;
    >> which certainly doesn't contain any "=";
    >>     
    >
    >   
    >> -Paul
    >>     
    >
    >   
    >> Andreev Nikita wrote:
    >>     
    >>> Hi,
    >>>
    >>> I'm trying to build BUPC 2.10.0 on HPC cluster built from Sun X2200 M2
    >>> machines usind Sun compiler (Sun Ceres Studio IDE 9.0 Linux_i386
    >>> 2009/03/06) as a backend.
    >>>
    >>> It configures ok but always builds with errors. I tried suncc, sunc89
    >>> and sunc99 compilers with no luck. Top level directory config.log,
    >>> make.log and configure line is in the attachment.
    >>>
    >>> I'm also using Paul H. Hargrove's dbg_inst.patch but it can't create
    >>> any problems.
    >>>
    >>> Does Berkeley UPC support Sun compiler as a backend?
    >>>
    >>> Nikita
    >>>       
    >
    >   
    
    
    -- 
    Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    Future Technologies Group                 Tel: +1-510-495-2352
    HPC Research Department                   Fax: +1-510-486-6900
    Lawrence Berkeley National Laboratory     
    
    
    Index: upcr_atomic.h
    ===================================================================
    RCS file: /var/local/cvs/upcr/upcr_atomic.h,v
    retrieving revision 1.29
    diff -u -r1.29 upcr_atomic.h
    --- upcr_atomic.h	27 Sep 2009 08:30:32 -0000	1.29
    +++ upcr_atomic.h	22 Dec 2009 07:53:48 -0000
    @@ -196,7 +196,7 @@
     	    _BUPC_ATOMIC_TRACE_FMT_DATA(_op1str,op1,_nbytes);        \
     	    _BUPC_ATOMIC_TRACE_FMT_DATA(_resultstr,result,_nbytes);  \
                 UPCRI_TRACE_STRICT(isstrict);                            \
    -	    UPCRI_TRACE_PRINTF_NOPOS(("ATOMIC" #name "%s(%s, %s) = %s",\
    +	    UPCRI_TRACE_PRINTF_NOPOS(("ATOMIC" name "%s(%s, %s) = %s",\
     				     (_islocal ? "_LOCAL" : ""),     \
     				     _op0str, _op1str, _resultstr)); \
     	}                                                            \
    @@ -209,7 +209,7 @@
     	    _BUPC_ATOMIC_TRACE_FMT_DATA(_op0str,op0,_nbytes);        \
     	    _BUPC_ATOMIC_TRACE_FMT_DATA(_resultstr,result,_nbytes);  \
                 UPCRI_TRACE_STRICT(isstrict);                            \
    -	    UPCRI_TRACE_PRINTF_NOPOS(("ATOMIC" #name "%s(%s) = %s",  \
    +	    UPCRI_TRACE_PRINTF_NOPOS(("ATOMIC" name "%s(%s) = %s",   \
     				     (_islocal ? "_LOCAL" : ""),     \
     				     _op0str, _resultstr));          \
     	}                                                            \
    @@ -221,7 +221,7 @@
     	    char _resultstr[80];                                     \
     	    _BUPC_ATOMIC_TRACE_FMT_DATA(_resultstr,result,_nbytes);  \
                 UPCRI_TRACE_STRICT(isstrict);                            \
    -	    UPCRI_TRACE_PRINTF_NOPOS(("ATOMIC" #name "%s() = %s",    \
    +	    UPCRI_TRACE_PRINTF_NOPOS(("ATOMIC" name "%s() = %s",     \
     				     (_islocal ? "_LOCAL" : ""),     \
     				      _resultstr));                  \
     	}                                                            \
    @@ -425,7 +425,7 @@
           GASNET_BLOCKUNTIL(result.flag != 0); /* Includes the RMB for STRICT */                       \
           retval = result.value._bupc_atomic_val_U##width;                                             \
         }                                                                                              \
    -    _BUPC_ATOMIC_TRACE_RMW2(width##_##operation, &op0, &op1, &retval, isstrict, local);            \
    +    _BUPC_ATOMIC_TRACE_RMW2(#width "_" #operation, &op0, &op1, &retval, isstrict, local);          \
         return retval;                                                                                 \
       }
     
    @@ -477,7 +477,7 @@
           GASNET_BLOCKUNTIL(result.flag != 0); /* Includes the RMB for STRICT */                       \
           retval = result.value._bupc_atomic_val_U##width;                                             \
         }                                                                                              \
    -    _BUPC_ATOMIC_TRACE_RMW1(width##_##operation, &operand, &retval, isstrict, local);              \
    +    _BUPC_ATOMIC_TRACE_RMW1(#width "_" #operation, &operand, &retval, isstrict, local);            \
         return retval;                                                                                 \
       }
     
    @@ -525,7 +525,7 @@
           GASNET_BLOCKUNTIL(result.flag != 0); /* Includes the RMB for STRICT */                       \
           retval = result.value._bupc_atomic_val_U##width;                                             \
         }                                                                                              \
    -    _BUPC_ATOMIC_TRACE_RMW0(width##_##operation, &retval, isstrict, local);                        \
    +    _BUPC_ATOMIC_TRACE_RMW0(#width "_" #operation, &retval, isstrict, local);                      \
         return retval;                                                                                 \
       }                                                                                                \
     
    

  • Next message: Paul H. Hargrove: "Re: UPC with Sun backend compiler"