Re: upc question

From: Dan Bonachea (bonachea_at_cs_dot_berkeley_dot_edu)
Date: Wed Sep 06 2006 - 12:07:45 PDT

  • Next message: Bernd Marquardt: "Problems with ISO image"
    This program must be compiled in the static threads environment, eg:
      upcc -T4 ...
    See upcc -help for details.
    Dan
    
    At 01:41 AM 9/5/2006, chenhu1982 wrote:
    >Dear Sir:
    >     When I Compile this program, I get error 
    > informations.But,this program is an example in 
    > upc_tutorial_sp06.pdf,which I download from 
    > http://upc.nersc.gov/publications/.
    >     Would you tell me how to handle this error? Thank you very much
    >
    >#include <stdio.h>
    >#include <upc_relaxed.h>
    >shared [THREADS] int a[THREADS][THREADS];
    >shared int b[THREADS],c[THREADS];
    >
    >int main()
    >{
    >         int i,j,l;
    >       /*
    >           Init a,b
    >      */
    >       upc_forall(i=0;i<THREADS;i++;i)
    >         {
    >                 c[i]=0;
    >                 for(l=0;l<THREADS;l++)
    >                         c[i]+=a[i][l]*b[l];
    >         }
    >}
    >
    >-----------error information--------
    >
    >Block Size is not a compile time constant
    >In the dynamic translation environment, THREADS 
    >may not be referenced more than once in a shared array declaration.
    >
    >
    >
    >
    >
    >
    >
    >
    >�� �� Щ �� Ů �� �� �� �� ( ͼ )
    ><http://adtaobao.allyes.com/main/adfclick?db=adtaobao&bid=600,597,58&cid=29985,198,1&sid=32501&show=ignore&url=http://www.taobao.com/vertical/lady/pro.php>�� 
    >�� �� �� �� ! һ �� �� �� �� 5800 Ư �� MM �� �� �� �� �� ( �� ͼ )
    

  • Next message: Bernd Marquardt: "Problems with ISO image"