Content-type: text/html
rapids_reporterror(), rapids_debugmsg(), rapids_reportvar(), rapids_algstate(),
The RAPIDS Application Programmer Interface (API) provides various functions that users can use in their applications to report different kinds of events to the RAPIDS Main Display and Control Node (MDCN).
All functions returns immediately after posting the event information into the RAPIDS messaging system
Most of the functions return SUCCESS (1) if successful, else FAILURE(-1) in case of error.
#include "rapids_api.h"
gcc -I{RAPIDS_API_INCLUDEDIR} ... -L{RAPIDS_API_LIBDIR} -lrmq
where RAPIDS_API_INCLUDEDIR is the directory where "rapids_api.h" is present
and RAPIDS_API_LIBDIR is the directory where librmq.a is present
error_level is one of the 3 error_levels: FATAL, SEVERE and WARNING. format corresponds to the format used in standard printf() functions.
debug_level is one of the 3 debug_levels: FINE, FINER and and FINEST. format corresponds to the format used in standard printf() functions.
var_name is the name of the variable. format corresponds to the format used in standard printf() functions.
The next argument is typically the variable itself.
alg_name is the name of the algorithm to be reported. status is the current state of the algorithm as defined by one of the algstatus codes: ALG_START and ALG_END
#include "rapids_api.h"
int main() {
int x = 20 ;
double d = 90.0 ;
rapids_reporterror(SEVERE, "%s", "This is a grave error") ;
rapids_debugmsg(FINEST, " two values %d %lf %s ", x, d, __FILE__) ;
rapids_reportvar("double d", "%lf", d) ;
rapids_algstatus("main", ALG_START) ;
return 0 ;
Still testing