[Rose-public] Backend compilation with alternates

Too, Justin A. too1 at llnl.gov
Fri Mar 13 13:16:53 PDT 2015


Hi Madhav,

Unfortunately, it is not that simple. ROSE requires the backend compiler's header files during processing so you have to configure and compile your version of ROSE with a specific compiler.

Thanks,
  Justin =)

From: Madhav K Gupta <madhavg at utexas.edu<mailto:madhavg at utexas.edu>>
Date: Friday, March 13, 2015 11:10 AM
To: "Too, Justin A." <too1 at llnl.gov<mailto:too1 at llnl.gov>>
Subject: Re: [Rose-public] Backend compilation with alternates

Hi Justin,
Thanks for the suggestion.  Is there an environment variable that can be set for dynamically passing the type of compiler to use?  It takes too long to build rose every time we need to change the compiler from nvcc to mpicc. Is there a better option that you would suggest?
Thanks,
Madhav

On Fri, Mar 13, 2015 at 1:08 PM, Too, Justin A. <too1 at llnl.gov<mailto:too1 at llnl.gov>> wrote:
Hi Madhav,

Please see these options in ROSE/configure —help:

$ ./configure --help | grep alternate_backend
  --with-alternate_backend_x10_compiler
  --with-alternate_backend_Cxx_compiler=<compiler name>
  --with-alternate_backend_C_compiler=<compiler name>
  --with-alternate_backend_fortran_compiler=<compiler name>
  --with-alternate_backend_java_compiler=<compiler name>

Thanks,
  Justin =)

From: Madhav K Gupta <madhavg at utexas.edu<mailto:madhavg at utexas.edu>>
Date: Friday, March 13, 2015 10:04 AM
To: "rose-public at nersc.gov<mailto:rose-public at nersc.gov>" <rose-public at nersc.gov<mailto:rose-public at nersc.gov>>
Subject: [Rose-public] Backend compilation with alternates

Hi All,
I am trying to write a translator to give an input C/C++ program CUDA/MPI/OpenMP functionality depending on the user selection.  After running the Translator, I get a massive amount of errors on my screen because of the auto-compilation with gcc.  To this effect, I was wondering if there is a way to compile the code with nvcc/icpc/g++ instead of the default gcc compiler?
Thanks,
Madhav

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nersc.gov/pipermail/rose-public/attachments/20150313/259e28e2/attachment.html>


More information about the rose-public mailing list