在后续并行区域设置线程数,因此,除非重写由 num_threads 子句。复制 void omp_set_num_threads( int num_threads ); 备注其中,num_threads 线程数在并行区域。备注有关更多信息,请参见 3.1.1 omp_set_num_threads功能。示例有关使用示例 omp_set_num_threads参见 omp_get_num_threads。
void omp_set_num_threads (intnum_threads); Parameters num_threads Must be a positive integer. Usage If thenum_threadsclause is present, then for the parallel region it is applied to, it supersedes the number of threads requested by this function or theOMP_NUM_THREADSenvironment variable. Subs...
在後續的平行區域,設定執行緒數目,除非藉由覆寫num_threads子句。 複製 void omp_set_num_threads( int num_threads ); 備註 其中, num_threads 在平行區域中的執行緒數目。 備註 如需詳細資訊,請參閱 3.1.1 omp_set_num_threads 函式。 範例 請參閱omp_get_num_threads的使用範例, omp_set_num_threa...
在后续并行区域设置线程数,因此,除非重写由num_threads子句。 void omp_set_num_threads( int num_threads ); 备注 其中, num_threads 线程数在并行区域。 备注 有关更多信息,请参见3.1.1 omp_set_num_threads 函数。 示例 有关使用示例 omp_set_num_threads参见omp_get_num_threads。
Sets the number of threads in subsequent parallel regions, unless overridden by a num_threads clause.複製 void omp_set_num_threads( int num_threads ); Remarkswhere,num_threads The number of threads in the parallel region.RemarksFor more information, see 3.1.1 omp_set_num_threads Function....
Learn Discover Product documentation Development languages Topics Sign in We're no longer updating this content regularly. Check theMicrosoft Product Lifecyclefor information about how this product, service, technology, or API is supported. Return to main site ...
Learn Discover Product documentation Development languages Topics Sign in We're no longer updating this content regularly. Check theMicrosoft Product Lifecyclefor information about how this product, service, technology, or API is supported. Return to main site ...
Sets the number of threads in subsequent parallel regions, unless overridden by a num_threads clause.复制 void omp_set_num_threads( int num_threads ); Remarkswhere,num_threads The number of threads in the parallel region.RemarksFor more information, see 3.1.1 omp_set_num_threads Function....
Sets the number of threads in subsequent parallel regions, unless overridden by a num_threads clause.复制 void omp_set_num_threads( int num_threads ); Remarkswhere,num_threads The number of threads in the parallel region.RemarksFor more information, see 3.1.1 omp_set_num_threads Function....
Sets the number of threads in subsequent parallel regions, unless overridden by a num_threads clause.复制 void omp_set_num_threads( int num_threads ); Remarkswhere,num_threads The number of threads in the parallel region.RemarksFor more information, see 3.1.1 omp_set_num_threads Function....