VC++ language CLR windows form with TBB? (error C2695)

anine
Total Points:
70
Registered User
October 27, 2008 8:12 PM PDT
Rate
 
#2 Reply to #1
Thanks for your answer. I followed your method to change codes in tbb/parallel_for.h. There is still a mistake(C3641). This mistake is a question about  '/clr:pure' and 'calling_convention'.
I only hope to change the following procedure from CLR console mode into CLR window form.
I am so unexpected that the problem is happen.
Maybe I have not noticed some details of CLR windows form.
class Average{
 float* input;
 float* output;
 size_t size;
 public:
  void operator () (const blocked_range<size_t> & r) const {
   for(size_t i = r.begin(); i != r.end(); i++){
    if(i == 0)
     output[i] = (input[i] + input[i] + input[i+1])/3;
    else if(i == (size-1))
     output[i] = (input[i-1] + input[i] + input[i])/3;
    else
     output[i] = (input[i-1] + input[i] + input[i+1])/3;
    
   }
  } // end operator()
     Average(float _i[], size_t _s, float _o[]) : input(_i), size(_s), output(_o) {} //constructor + initial setup
 };

 



Intel Software Network Forums Statistics

8289 users have contributed to 31235 threads and 99108 posts to date.
In the past 24 hours, we have 7 new thread(s) 24 new posts(s), and 31 new user(s).

In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing...  Escalated as

Please welcome our newest member Michael Johanson