Get Configures Used at Compiling Time {pbdMPI} | R Documentation |
Functions to Get MPI and/or pbdMPI Configures Used at Compiling Time
Description
These functions are designed to get MPI and/or pbdMPI configures that were usually needed at the time of pbdMPI installation. In particular, to configure, link, and compile with 'libmpi*.so' or so.
Usage
get.conf(arg, arch = '', package = "pbdMPI", return = FALSE)
get.lib(arg, arch, package = "pbdPROF")
get.sysenv(flag)
Arguments
arg |
an argument to be searched in the configuration file |
arch |
system architecture |
package |
pakge name |
return |
to return (or print if FALSE) the search results or not |
flag |
a system flag that is typically used in windows environment
|
Details
get.conf()
and get.lib()
are typically used by 'pbd*/configure.ac',
'pbd*/src/Makevars.in', and/or 'pbd*/src/Makevar.win' to find
the default configurations from 'pbd*/etc${R_ARCH}/Makconf'.
get.sysenv()
is only called by 'pbdMPI/src/Makevars.win' to obtain
possible MPI dynamic/static library from the environment variable
'MPI_ROOT' preset by users.
Value
Typically, there are no return values, but the values are cat()
to
scrrn or stdin.
Author(s)
Wei-Chen Chen wccsnow@gmail.com, George Ostrouchov, Drew Schmidt, Pragneshkumar Patel, and Hao Yu.
References
Programming with Big Data in R Website: https://pbdr.org/
Examples
## Not run:
library(pbdMPI)
if(Sys.info()["sysname"] != "Windows"){
get.conf("MPI_INCLUDE_PATH"); cat("\n")
get.conf("MPI_LIBPATH"); cat("\n")
get.conf("MPI_LIBNAME"); cat("\n")
get.conf("MPI_LIBS"); cat("\n")
} else{
get.conf("MPI_INCLUDE", "/i386"); cat("\n")
get.conf("MPI_LIB", "/i386"); cat("\n")
get.conf("MPI_INCLUDE", "/x64"); cat("\n")
get.conf("MPI_LIB", "/x64"); cat("\n")
}
## End(Not run)