[Rd] Set the number of threads using openmp with .Fortran?

2019-02-01 Thread Ignacio Martinez
Hi everybody, I'm trying to develop an R package with Fortran and OpenMP. I wrote a simple hello world but I'm not able to set the number of threads. I found this old email chain and I tried to set my comp

Re: [Rd] Set the number of threads using openmp with .Fortran?

2019-02-02 Thread Ignacio Martinez
es) to set the number of threads. Why is this not working? How can I fix it? Thanks a lot for the help Ignacio On Fri, Feb 1, 2019 at 4:51 PM Ignacio Martinez wrote: > Hi everybody, > > I'm trying to develop an R package with Fortran and OpenMP. I wrote a > simple hello wo

Re: [Rd] Set the number of threads using openmp with .Fortran?

2019-02-02 Thread Ignacio Martinez
thread will say hi to you!') } > hello(nthreads = 2) Hello from 0 Hello from 1 [1] "Each thread will say hi to you!" Alas, on Windows the same command just returns "Each thread will say hi to you!" without the Hello from X Thanks for your help, I

[Rd] R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'

2015-07-27 Thread Ignacio Martinez
Hi, I created a R library that uses a Fortran module. Everything works like a charm on linux. Now I'm trying to make it work on Windows. I cloned my git repository on a windows computer, and when I press the build and reload button on Rstudio I get these errors

Re: [Rd] R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'

2015-07-27 Thread Ignacio Martinez
that's a separate > issue.) > > As an aside, be sure to check out what R-exts has to say on the topic > of Fortran code in R packages (especially F90 and above): > https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-F95-code > . > > Cheers, > K