[R-sig-hpc] OpenMP Problem

Jan de Leeuw deleeuw at stat.ucla.edu
Thu Sep 17 16:39:42 CEST 2009

On OS X using gcc-4.5 I have

deleeuw at cuddyvalley:~/Desktop/ > echo $CFLAGS
-m64 -O3 -fopenmp -mtune=native
deleeuw at cuddyvalley:~/Desktop/ > echo $LDFLAGS
-m64 -fopenmp

for all compilations, including the compilation of
the R-devel trunk. Then after R SHLIB tiny.c I get

 > dyn.load("tiny.so")
 > a<-.C("tiny")
number of threads is 2
number of threads is 2
I am thread 0
I am thread 1

      Jan de Leeuw, 11667 Steinhoff Rd, Frazier Park, CA 93225
      home 661-245-1725 mobile 661-231-5416 work 310-825-9550
      .mac: jdeleeuw +++  aim: deleeuwjan +++ skype: j_deleeuw
              I am I because my little dog knows me.
	 		                 Gertrude Stein

More information about the R-sig-hpc mailing list