Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G GenericIO
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hacc
  • GenericIO
  • Merge requests
  • !3

non-MPI version for (new) Python interface (only affects new_python)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Michael Buehlmann requested to merge master into master Jan 15, 2021
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 4

Always compile a non-MPI version of the (new) python library, which can be loaded by setting the GENERICIO_NO_MPI env variable. Also add the PrintStats boolean to the python interface.

Background: on some systems, MPI is not supported on the login node (cooley) or on jupyterhub instances (summit), and the "new" python module cannot be loaded on this system. This commit compiles two python modules (with and without MPI, or only without MPI if MPI is not available during compilation).

By default, if available, the MPI version is loaded. The non-MPI version can be forced to be loaded as follows:

import os
os.environ['GENERICIO_NO_MPI'] = 'True'
import pygio

The writing of GenericIO files in the python module is not supported if MPI is disabled.

Edited Jan 19, 2021 by Michael Buehlmann
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master

Virtual Help Desk | CELS Gitlab Instructions | Privacy Policy