Skip to Content.
Sympa Menu

charm - Re: [charm] Compiler defined value when compiling with charmc

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] Compiler defined value when compiling with charmc


Chronological Thread 
  • From: Nikhil Jain <nikhil.jain AT acm.org>
  • To: Robert Steinke <rsteinke AT uwyo.edu>, Charm Mailing List <charm AT cs.illinois.edu>
  • Cc: Nikhil Jain <nikhil.life AT gmail.com>
  • Subject: Re: [charm] Compiler defined value when compiling with charmc
  • Date: Tue, 06 Sep 2016 14:45:09 -0700

Compilation using charmc adds the following define for all C/C++ files:

-D__CHARMC__=1



On 9/6/16, 13:42, "Robert Steinke"
<rsteinke AT uwyo.edu>
wrote:

>Is there a #define set by the charmc compiler so that I can know that my
>code is being compiled by charm? I have some generic code. If I use it
>in a charm program I'd like to use CkPrintf, but in a non-charm program
>I want to use printf. I could add my own #define, but I'm wondering if
>charm already provides one?





Archive powered by MHonArc 2.6.19.

Top of Page