Skip to Content.
Sympa Menu

charm - Re: [charm] Detect SMP install

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] Detect SMP install


Chronological Thread 
  • From: Jozsef Bakosi <jbakosi AT lanl.gov>
  • To: "White, Samuel T" <white67 AT illinois.edu>
  • Cc: "charm AT lists.cs.illinois.edu" <charm AT lists.cs.illinois.edu>
  • Subject: Re: [charm] Detect SMP install
  • Date: Mon, 10 Dec 2018 08:12:28 -0700
  • Authentication-results: illinois.edu; spf=pass smtp.mailfrom=jbakosi AT lanl.gov; dkim=pass header.d=lanl.gov header.s=lanl; dmarc=pass header.from=lanl.gov

Thanks, Sam, that works great.

For those who are interested, here is some cmake code to detect SMP
mode: https://github.com/quinoacomputing/cmake-modules/commit/5693bac.

Jozsef

On 12.10.2018 00:17, White, Samuel T wrote:
> Hi Jozsef,
>
> Our build system generates a "charm/<build_dir>/include/conv-mach-opts.mak"
> file (pre-v6.9.0 this file was named build-opts.mk) which enables checking
> CMK_SMP's value from inside Makefiles, and
> "charm/<build_dir>/include/conv-mach.opt.h" which if it is an SMP build
> will contain a "#include "conv-mach-smp.h"" which will contain "#define
> CMK_SMP 1".
>
> Thanks,
> Sam
>
> ________________________________________
> From: Jozsef Bakosi
> [jbakosi AT lanl.gov]
> Sent: Friday, December 07, 2018 8:21 PM
> To:
> charm AT lists.cs.illinois.edu
> Subject: [charm] Detect SMP install
>
> Hi folks,
>
> What is a reliable way to detect if a Charm++ install was built in SMP
> mode?
>
> Ideally, I'd like to detect this from an include file based on a
> compiler macro, perhaps under <charm-install>/include?
>
> I'm trying to grep for CMK_SMP, but I'm not finding anything in the
> install dir.
>
> Thanks,
> Jozsef



Archive powered by MHonArc 2.6.19.

Top of Page