StarNEig User's Guide  v0.1.8
A task-based library for solving dense nonsymmetric eigenvalue problems
node.h File Reference

This file contains interface to configure the intra-node execution environment. More...

#include <starneig/configuration.h>
#include <stddef.h>
#include <mpi.h>

Go to the source code of this file.

Functions

void starneig_node_init (int cores, int gpus, starneig_flag_t flags)
 Initializes the intra-node execution environment. More...
 
int starneig_node_initialized ()
 Checks whether the intra-node execution environment is initialized. More...
 
int starneig_node_get_cores ()
 Returns the number of cores (threads) per MPI rank. More...
 
void starneig_node_set_cores (int cores)
 Changes the number of CPUs cores (threads) to use per MPI rank. More...
 
int starneig_node_get_gpus ()
 Returns the number of GPUs per MPI rank. More...
 
void starneig_node_set_gpus (int gpus)
 Changes the number of GPUs to use per MPI rank. More...
 
void starneig_node_finalize ()
 Deallocates resources associated with the intra-node configuration.
 
void starneig_mpi_set_comm (MPI_Comm comm)
 
MPI_Comm starneig_mpi_get_comm ()
 
Pinned host memory
void starneig_node_enable_pinning ()
 Enable CUDA host memory pinning. More...
 
void starneig_node_disable_pinning ()
 Disables CUDA host memory pinning. More...
 

Library initialization flags

#define STARNEIG_USE_ALL   -1
 Use all resources. More...
 
#define STARNEIG_DEFAULT   0x0
 Default mode. More...
 
#define STARNEIG_HINT_SM   0x0
 Shared memory mode. More...
 
#define STARNEIG_HINT_DM   0x1
 Distributed memory mode. More...
 
#define STARNEIG_FXT_DISABLE   0x2
 No FxT traces mode. More...
 
#define STARNEIG_AWAKE_WORKERS   0x4
 Awake worker mode. More...
 
#define STARNEIG_AWAKE_MPI_WORKER   0x8
 Awake MPI worker mode. More...
 
#define STARNEIG_FAST_DM   (STARNEIG_HINT_DM | STARNEIG_AWAKE_WORKERS | STARNEIG_AWAKE_MPI_WORKER)
 Fast distributed memory mode. More...
 
#define STARNEIG_NO_VERBOSE   0x10
 No verbose mode. More...
 
#define STARNEIG_NO_MESSAGES   (STARNEIG_NO_VERBOSE | 0x20)
 No messages mode. More...
 
typedef unsigned starneig_flag_t
 Library initialization flag data type.
 

Detailed Description

This file contains interface to configure the intra-node execution environment.

Author
Mirko Myllykoski (mirko.nosp@m.m@cs.nosp@m..umu..nosp@m.se), Umeå University
Lars Karlsson (larsk.nosp@m.@cs..nosp@m.umu.s.nosp@m.e), Umeå University