changeset 1567:67f362c6325c draft

add file
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Sat, 16 Mar 2013 19:57:17 +0900
parents 7d307bac94a6
children b3f865f339f6
files example/fft/GlobalID.h example/fft/ppe/setid.cc example/fft/ppe/setid.h
diffstat 3 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/example/fft/GlobalID.h	Sat Mar 16 19:57:17 2013 +0900
@@ -0,0 +1,3 @@
+FIRSTID,
+    SECONDID,
+    
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/example/fft/ppe/setid.cc	Sat Mar 16 19:57:17 2013 +0900
@@ -0,0 +1,13 @@
+#include "setid.h"
+#include "Func.h"
+
+SchedDefineTask1(setid,setid);
+
+static int
+setid(SchedTask* s,void* rbuf,void* wbuf)
+{
+    s->global_alloc(FIRSTID,sizeof(int));
+    s->global_alloc(SECONDID,sizeof(int));
+
+    return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/example/fft/ppe/setid.h	Sat Mar 16 19:57:17 2013 +0900
@@ -0,0 +1,8 @@
+#ifndef INCLUDED_TASK_SET_ID
+#define INCLUDED_TASK_SET_ID
+
+#ifndef INCLUDED_SCHED_TASK
+#include "SchedTask.h"
+#endif
+
+#endif