/[escript]/branches/clazy/escriptcore/src/DataLazy.cpp
ViewVC logotype

Diff of /branches/clazy/escriptcore/src/DataLazy.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2066 by jfenwick, Thu Nov 20 05:31:33 2008 UTC revision 2082 by caltinay, Fri Nov 21 01:46:05 2008 UTC
# Line 1021  cout << "Buffers=" << m_buffsRequired << Line 1021  cout << "Buffers=" << m_buffsRequired <<
1021    int numthreads=1;    int numthreads=1;
1022  #ifdef _OPENMP  #ifdef _OPENMP
1023    numthreads=getNumberOfThreads();    numthreads=getNumberOfThreads();
   int threadnum=0;  
1024  #endif  #endif
1025    ValueType v(numthreads*threadbuffersize);    ValueType v(numthreads*threadbuffersize);
1026  cout << "Buffer created with size=" << v.size() << endl;  cout << "Buffer created with size=" << v.size() << endl;
# Line 1033  cout << "Buffer created with size=" << v Line 1032  cout << "Buffer created with size=" << v
1032    int totalsamples=getNumSamples();    int totalsamples=getNumSamples();
1033    const ValueType* res=0;   // Vector storing the answer    const ValueType* res=0;   // Vector storing the answer
1034    size_t resoffset=0;       // where in the vector to find the answer    size_t resoffset=0;       // where in the vector to find the answer
1035    #pragma omp parallel for private(sample,resoffset,outoffset,threadnum,res) schedule(static)    #pragma omp parallel for private(sample,resoffset,outoffset,res) schedule(static)
1036    for (sample=0;sample<totalsamples;++sample)    for (sample=0;sample<totalsamples;++sample)
1037    {    {
1038  cout << "################################# " << sample << endl;  cout << "################################# " << sample << endl;

Legend:
Removed from v.2066  
changed lines
  Added in v.2082

  ViewVC Help
Powered by ViewVC 1.1.26