Project
Loading...
Searching...
No Matches
o2::framework::ComputingResourceHelpers Struct Reference

#include <ComputingResourceHelpers.h>

Static Public Member Functions

static ComputingResource getLocalhostResource ()
 
static std::vector< ComputingResourceparseResources (std::string const &resourceString)
 

Detailed Description

Definition at line 22 of file ComputingResourceHelpers.h.

Member Function Documentation

◆ getLocalhostResource()

ComputingResource o2::framework::ComputingResourceHelpers::getLocalhostResource ( )
static

This will create a ComputingResource which matches what offered by localhost. Notice that the port range will always be [22000, 23000) since in any case we will use ipc:// in place of tcp://

Definition at line 25 of file ComputingResourceHelpers.cxx.

◆ parseResources()

std::vector< ComputingResource > o2::framework::ComputingResourceHelpers::parseResources ( std::string const &  resourceString)
static

Parse a string which contains resources specified in the following format:

<hostname>:<cpu cores>:<memory in MB>:<start port>:<last port>

Definition at line 37 of file ComputingResourceHelpers.cxx.


The documentation for this struct was generated from the following files: