Is LAM thread safe? We are using the BLAS routines dgemm/zgemm from the Intel Math Kernel Library on a Linux 7.2 system. Intel threads these routines using OpenMP. Is LAM compatible with OpenMP?
We are using Portland Group compilers and have found that we need to include the -mp flag to get threading of the routines. This flag informs the compiler to interpret OpenMP statements. It also sets a reentrant flag, where local variables are placed on the stack and optimizations that may result in non-reentrant code are disabled.
Don Jones
|