Dear Loris,

On 05/12/2019 12:49, Loris Bennett wrote:
Hi John,

The packages are

   inline
   loo
   StanHeaders
   rstan

I have tried adding

  'installopts': '--configure-args="CXXFLAGS=\\"$CXXFLAGS -DSTAN_THREADS\\""',

to both StanHeaders and rstan packages, but there is no effect on the
options actually passed to the compiler.

Can you share the full easyconfig file you're using for this?


regards,

Kenneth


Cheers,

Loris

John Dey <[email protected]> writes:

Which R package were you trying to install?

On Fri, Nov 15, 2019 at 1:52 AM Loris Bennett <[email protected]> 
wrote:

  Hi,

  I am trying to install

    RStan-2.18.2-foss-2018b-R-3.5.1.eb

  with the additional compiler flag:

    -DSTAN_THREADS

  I want to us a hook and tried

    def pre_configure_hook(self, *args, **kwargs):

        """Pre-build hook"""

        # Build RStan with threading
        ##################################################
        if self.name == 'RStan':
            self.cfg['buildopts'] = self.cfg['buildopts'] \
                + 'CXXFLAGS="$CXXFLAGS -DSTAN_THREADS"'
            self.log.info("[pre-build hook] Added -DSTAN_THREADS to CXXFLAGS to 
buildopts")
            return

  In the log file I can see that  the hooks is called, but the flag
  doesn't seem to be used.

  What am I doing wrong?

  Cheers,

  Loris

  --
  Dr. Loris Bennett (Mr.)
  ZEDAT, Freie Universität Berlin         Email [email protected]

Reply via email to