Module: Linear Algebra Group: Global Functions
Global Function
#include "rw/lapack/blainit.h"
inline void rwBlaInitStatics();
Global function rwBlaInitStatics() allows you to "preinitialize" static data in the Rogue Wave version of the lapack bla library. To avoid the risk of race conditions with multiple threads under stress, call this function prior to first use of code from the Linear Algebra Module (whether directly or indirectly through lapack or math libraries).
This function is necessary only when using multiple threads with the Rogue Wave LAPACK Basic Linear Algebra Subroutines(BLAS), as opposed to those from some other vendor. When used with BLAS libraries from another vendor (such as MKL from Intel or SPL from Sun), this function is a no-op.
#include "rw/lapack/blainit.h" // Make no calls to lapack routines here. rwBlaInitStatics(); // pre-initialize static "constant" values. // It is now safe to call lapack routines from multiple threads.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.