celltask-svn Mailing List for Cell/BE task library
Brought to you by:
gshi
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: <gs...@us...> - 2009-06-25 22:33:12
|
Revision: 7
http://celltask.svn.sourceforge.net/celltask/?rev=7&view=rev
Author: gshi
Date: 2009-06-25 22:33:06 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
update the README, added some explanation to the example programs
Modified Paths:
--------------
README
Modified: README
===================================================================
--- README 2009-06-25 22:21:53 UTC (rev 6)
+++ README 2009-06-25 22:33:06 UTC (rev 7)
@@ -48,7 +48,20 @@
Do a "make install" will install the necessary head files and libraries into your home directory: ${HOME}/celltask
You can change where you want to install by editting the Makefiles in
+---------------------------------------------------------------------------------------
+Examples:
+There are two examples in the example directories using the library.
+1. examples/helloworld
+
+The simple program to show how to register a function, construct a task and retrive the parameters in the spu program
+
+2. /examples/matmul
+
+This program is a more complicated example showing how to do an array of 4x4 matrix multiplication, using double buffering.
+
+
+---------------------------------------------------------------------------------------
A quick look of the APIs
PPE:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gs...@us...> - 2009-06-25 22:21:59
|
Revision: 6
http://celltask.svn.sourceforge.net/celltask/?rev=6&view=rev
Author: gshi
Date: 2009-06-25 22:21:53 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
disable NUMA by default
Modified Paths:
--------------
examples/matmul/main.c
Modified: examples/matmul/main.c
===================================================================
--- examples/matmul/main.c 2009-06-16 21:22:00 UTC (rev 5)
+++ examples/matmul/main.c 2009-06-25 22:21:53 UTC (rev 6)
@@ -3,7 +3,6 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
-#include <numa.h>
#include "spu/compute_task.h"
@@ -14,7 +13,7 @@
#define COUNT (1024*1024*8)
-#define NUMA
+//#define NUMA
#ifndef NUMA
float bufa[COUNT] __attribute__ ((aligned (128)));
float bufb[COUNT] __attribute__ ((aligned (128)));
@@ -22,6 +21,7 @@
float resultc[COUNT] __attribute__ ((aligned (128)));
void alloc_mem(){}
#else
+#include <numa.h>
float* bufa;
float* bufb;
float* bufc;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|