Knowledge Center         Contents    Previous  Next    
Platform Computing Corp.

lsb_getalloc()

Allocates memory for a host list to be used for launching parallel tasks through blaunch and the lsb_launch() API.

DESCRIPTION

It is the responsibility of the caller to free the host list when it is no longer needed. On success, the host list will be a list of strings. Before freeing host list, the individual elements must be freed.

An application using the lsb_getalloc() API is assumed to be part of an LSF job, and that LSB_MCPU_HOSTS is set in the environment.

SYNOPSIS

#include <lsf/lsbatch.h> 
int lsb_getalloc(char ***hostlist) 

PARAMETERS

hostlist

[OUT] A null-terminated list of host names

RETURN VALUES

> 0

Function was successful. Returns length of hostlist, not including the null last element.

< 0

Function failed.

ERRORS

If the function fails, lsberrno is set to indicate the error.

SEE ALSO

Related API

none

Equivalent line command

none

Files

none


Platform Computing Inc.
www.platform.com
Knowledge Center         Contents    Previous  Next