keropts.c File Reference

Detailed Description

Process kernel-specific command-line options.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <oski/oski.h>
#include "keropts.h"
#include "parse_opts.h"


void keropts_Usage (FILE *fp)
 Print usage statement for arguments relative to kernel options.
static int process_MatMult (int argc, char *argv[], int i_start, kerargs_MatMult_t *args)
static int process_MatTrisolve (int argc, char *argv[], int i_start, kerargs_MatTrisolve_t *args)
static int process_MatTransMatMult (int argc, char *argv[], int i_start, kerargs_MatTransMatMult_t *args)
static int process_MatMultAndMatTransMult (int argc, char *argv[], int i_start, kerargs_MatMultAndMatTransMult_t *args)
static int process_MatPowMult (int argc, char *argv[], int i_start, kerargs_MatPowMult_t *args)
int keropts_Process (int argc, char *argv[], int i_start, kernel_t **p_opt)
 Process a kernel option.

Function Documentation

int keropts_Process int  argc,
char *  argv[],
int  i_start,
kernel_t **  p_opt

Process a kernel option.

[in] argc Length of argument list.
[in] argv Command-line argument list.
[in] i_start Index of argv on which to start processing.
[in,out] p_opt Address of a pointer in which to store the address of a kernel option, if processed. Must not be NULL.
Index of the next unprocessed option in argv, and sets *p_opt to be equal to the address of a new kernel_t data structure. If a kernel option cannot be processed, returns i_start and sets *p_opt to NULL.

Generated on Wed Sep 19 16:41:22 2007 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.4.6