Re: [R-pkg-devel] Suggesting gurobi

2021-06-07 Thread Uwe Ligges
On 05.06.2021 01:47, Dirk Eddelbuettel wrote: On 4 June 2021 at 16:21, Balasubramanian Narasimhan wrote: | Suggests" would trigger an attempt to install gurobi, which is not on CRAN. To my understanding that is not the case. It would only do so if and when install.packages() is asked to also

Re: [R-pkg-devel] OpenMP on MacOS

2021-06-07 Thread Hugh Parsonage
Ensure you surround all your omp pragmas like so: #ifdef _OPENMP #pragma omp parallel ... #endif Essentially, detecting the operating system is not enough -- you need to condition your use of OpenMP if and only if _OPENMP is available. You should also do the same for #if _OPENMP #include #endi

Re: [R-pkg-devel] OpenMP on MacOS

2021-06-07 Thread David Kepplinger
See https://cran.r-project.org/doc/manuals/r-release/R-exts.html#OpenMP-support for a way to enable OpenMP when it's available. If you need more detailed checks for the OpenMP support in the toolchain, you would need to use a configure script. For example, I'm using an autoconf configure script for

[R-pkg-devel] OpenMP on MacOS

2021-06-07 Thread Konrad Krämer via R-package-devel
Dear all, I have a problem regarding OpenMP on Mac OS. Recently I submitted my package to CRAN (https://cran.r-project.org/web/packages/paropt/index.html). However, there seems to be a problem with 'fopenmp' on Mac OS using clang++. I have read many forums regarding the topic. Thus, I know that