[Celltask-svn] SF.net SVN: celltask:[6] examples/matmul/main.c
Brought to you by:
gshi
|
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.
|