view example/dependency_task/ppe/Print.cc @ 325:f79cacba09b1

add inner_product is minus case.
author e065725@yutaka.st.ie.u-ryukyu.ac.jp
date Thu, 11 Jun 2009 16:55:10 +0900
parents 58fd16298954
children 44c0bce54dcf
line wrap: on
line source

#include <stdio.h>
#include <string.h>
#include "Print.h"
#include "Func.h"

/* これは必須 */
SchedDefineTask(Print);

int
Print::run(void *rbuf, void *wbuf)
{
    int *idata = (int*)get_input(rbuf, 0);
    int length = get_param(0);

    printf("[TASK_PRINT]\n");
    for (int i = 0; i < length; i++) {
	printf("%2d ", idata[i]);
    }
    printf("\n");

    return 0;
}