我的方案包括(a)按线处理一些原始图像数据,我想将这种数据与公开图像相平行:
...
#if defined(_OPENMP)
int const threads = 8;
omp_set_num_threads( threads );
omp_set_dynamic( threads );
#endif
int line = 0;
#pragma omp parallel private( line )
{
// tell the compiler to parallelize the next for() loop using static
// scheduling (i.e. balance workload evenly among threads),
// while letting each thread process exactly one line in a single run
#pragma omp for schedule( static, 1 )
for( line = 0 ; line < max; ++line ) {
// some processing-heavy code in need of a buffer
}
} // end of parallel section
....
www.un.org/Depts/DGACM/index_spanish.htm 问题是:。
可否利用标准的开放式管理计划 pragma/Function向执行我的住所的团队的每一对面提供一个个人(预定地点)缓冲(点)。 (需要消除每座休息室分配新的缓冲)
提前感谢。
Bjoern