Dear R-sig-hpc,

I have a C function that uses openmp for parallelization on shared memory
architecture.  I have a Makevars file in the src directory which specifies
the the -fopenmp flag.  When I run R CMD SHLIB file.c to compile my file, it
uses the openmp flag and doesn't give any warnings.  Yet when I call the
function from R using the .C interface, it uses only one processor.  If I
compile a stand-alone version of the C code, it runs in parallel on all
available processors.  Is this the expected behavior?  What is the correct
way to adapt already parallelized C code to be callable from R?

Thanks very much for your help.
Carl

-- 
Carl Boettiger
Population Biology, UC Davis
http://two.ucdavis.edu/~cboettig

	[[alternative HTML version deleted]]

