On 16/04/2013 at 07:16, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13/14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
currently I'm doing a Plugin which is doing an intensive calculation, one part of this calculation is copy a large amount of memory to another memory location with a for loop
something like:
for (int lc = 0;lc < 100000000; lc++){
> NewData[9*lc] = OldData[lc].s[0];
> NewData[9*lc+1] = OldData[lc].s[1];
> NewData[9*lc+2] = OldData[lc].s[2];
>
>
> NewData[9*lc+3] = OldData_A[lc].s[0];
> NewData[9*lc+4] = OldData_A[lc].s[1];
> NewData[9*lc+5] = OldData_A[lc].s[2];
>
>
> NewData[9*lc+6] = OldData_B[lc].s[0];
> NewData[9*lc+7] = OldData_B[lc].s[1];
> NewData[9*lc+8] = OldData_B[lc].s[2];
}
>
>
I have seen MenuTest.cpp but didn't understand how to do it with a simple for loop
in simple cases it is just like this
#pragma omp parallel for num_threads(6)
and then my for loop
but found that c4d sdk got problems with OpenMP ...
thanks in advance
Mohamed Sakr