HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.30  omp_set_affinity_format

SummaryThe omp_set_affinity_format routine sets the affinity format to be used on the device by setting the value of the affinity-format-var ICV.

Format

SVG-Viewer needed.

 

 
void omp_set_affinity_format(const char *format);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
subroutine omp_set_affinity_format(format) 
character(len=*),intent(in) :: format  

SVG-Viewer needed.

BindingWhen called from a sequential part of the program, the binding thread set for an omp_set_affinity_format region is the encountering thread. When called from within any parallel or teams region, the binding thread set (and binding region, if required) for the omp_set_affinity_format region is implementation defined.

EffectThe effect of omp_set_affinity_format routine is to copy the character string specified by the format argument into the affinity-format-var ICV on the current device. This routine has the described effect only when called from a sequential part of the program. When called from within a parallel or teams region, the effect of this routine is implementation defined.

Cross References