On 9/25/06 1:54 PM, "Ahmad Faraj" <fa...@cs.fsu.edu> wrote:
> I am trying to call the internal function "ompi_op_reduce" from my code. > is there a way to do this, can I link with any library under the /lib > directory of where openmpi is imstalled. This function is internal to Open MPI, and is therefore not prototyped in mpi.h. You can call any function in libmpi that you want (including ompi_op_reduce), but you'll need to either prototype it yourself or configure Open MPI with --with-devel-headers that will allow you to include "ompi/op/op.h", where it is prototyped. However, I'd advise against this for the following reasons: - your code will be non-portable - it's not a public function, and is therefore subject to change at any time (i.e., we may change its prototype, how it works, etc. -- this is unlikely, but certainly possible) -- Jeff Squyres Server Virtualization Business Unit Cisco Systems