Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7928637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:47:41+00:00 2026-06-03T19:47:41+00:00

I am trying to use the all_reduce function to collect a boolean from each

  • 0

I am trying to use the all_reduce function to collect a boolean from each processor and reduce them to true if any of the booleans are true(ie the “or” operator). But I am having issues finding the right syntax for this. What I have right now is

all_reduce(world,update,update_sum,or());

I get the following compiler errors when I try to run this.

time_step_Gear_Verlet.cpp:94: error: expected primary-expression before '||' token
time_step_Gear_Verlet.cpp:94: error: expected primary-expression before ')' token

I tried just using ||() instead of or(), but that doesn’t work either. Maybe I’m missing something? Or is there another way I have to go about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:47:43+00:00Added an answer on June 3, 2026 at 7:47 pm

    You should use std::logical_or. The tutorial page has tables of operations from C MPI to their corresponding operations in Boost.MPI.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use a pipelined function to save on time and reduce redundancy
I am trying to use same validation function for all my controls. But I
I am trying to use Linq2Sql to return all rows that contain values from
I'm trying to use CSS sprites to reduce the number of HTTP requests on
I'm trying to use JQuery to select all of the TD 's in a
I'm trying to use Linq to loop through all fonts in the %windir%\Fonts folder
I'm trying to use strace to monitor all file accesses by g++ but it
I am trying to use selenium.getEval() to get all of the elements with a
I'm trying to use the PowerShell Add-Member cmd on all the items in an
I'm trying to use the getElementsByTagName(a) method to get all the elements under a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.