Get Configures Used at Compiling Time {pbdMPI} | R Documentation |
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.
get.conf(arg, arch = '', package = "pbdMPI", return = FALSE) get.lib(arg, arch, package = "pbdPROF") get.sysenv(flag)
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
|
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.
Typically, there are no return values, but the values are cat()
to
scrrn or stdin.
Wei-Chen Chen wccsnow@gmail.com, George Ostrouchov, Drew Schmidt, Pragneshkumar Patel, and Hao Yu.
Programming with Big Data in R Website: http://r-pbd.org/
## 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)