petsc-3.3-p7 2013-05-11

VecSetThreadAffinities

Sets the CPU affinities of vector threads.

Synopsis

#include "petscvec.h" 
PetscErrorCode VecSetThreadAffinities(Vec v,const PetscInt affinities[])
Input Parameters
v - the vector
affinities - list of cpu affinities for threads.

Notes

Must set affinities for all the threads used with the vector (not including the main thread)

Use affinities[] = PETSC_NULL for PETSc to decide the thread affinities.

Options Database Keys

-vec_thread_affinities - Comma seperated list of thread affinities

See Also

VecGetThreadAffinities()

Level:intermediate
Location:
src/vec/vec/impls/seq/seqpthread/vecpthread.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages