ls_gethostfactor
Returns a pointer to a floating point number that contains the CPU factor of the specified host.This routine obtains static resource information about hosts. Static resources include configuration information as determined by LSF configuration files (see lsf.shared and lsf.cluster) as well as others determined automatically by LIM at start up.
ls_gethostfactor returns a pointer to a floating point number that contains the CPU factor of the specified host.
This routine returns a pointer to dynamically allocated data structures which can be freed in subsequent calls.
#include <lsf/lsf.h>
float *ls_gethostfactor(char *hostname)
Data Structures:
- Parameters:
*hostname The host to which the floating point number is returned. Define Statements:
- none
- none
Errors:
- Returns:
- float *:A pointer to the CPU factor of the specified host.
Function was successful.NULL
Function failed.Equivalent line commands:
- If the function fails, lserrno is set to indicate the error.
Files:
- none
- $LSF_CONFDIR/lsf.shared
$LSF_CONFDIR/lsf.cluster.cluster_name
- See also:
- ls_gethosttype
Date Modified: 9 Sep 2009
Platform Support: support@platform.com
Platform Information Development: doc@platform.com
Platform Computing. Accelerating Intelligence(TM).
Copyright © 1994-2009 Platform Computing Corporation. All rights reserved.