BeBOP: pOSKI  v1.0.0
parallel Optimized Sparse Kernel Interface library
 All Files Functions Variables
Functions
poski_InitCloseHandler.c File Reference

Initialize and clean-up the pOSKI library. More...

#include <stdio.h>
#include <stdlib.h>
#include <oski/oski.h>
#include <poski/poski_version.h>
#include <poski/poski_system.h>
#include <poski/poski_print.h>

Functions

int poski_Init (void)
 Initialize the pOSKI library.
int poski_Close ()
 Shut down the pOSKI library.

Detailed Description

Initialize and clean-up the pOSKI library.

This module implements the library initialization and clean-up.

The library checks for an environment variable, whose name is defined by the compile-time macros POSKI_LOG_FILE, and POSKI_MESSAGE_LEVEL, for reporting messages.

Also, refer poski_LogFileHandler.c poski_MessageHandler.c


Function Documentation

int poski_Init ( void  )

Initialize the pOSKI library.

Returns:
0 on success, an error message on error.

(1) set POSKI_LOG_FILE

(2) set POSKI_MESSAGE_LEVEL

(3) check system configuration

(4) initalize library

int poski_Close ( )

Shut down the pOSKI library.

Returns:
0 on success, an error message on error.

(1) close library

(2) close POSKI_LOG_FILE