Mercurial > hg > Game > Cerium
changeset 1704:8e0305989829 draft
run multicore fft
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Oct 2013 02:16:48 +0900 |
parents | eab9b8205b85 |
children | eba3664eacbe |
files | example/fft/Makefile.macosx example/fft/gpu/gpu_task_init.cc example/fft/output.pgm |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/example/fft/Makefile.macosx Tue Oct 08 01:39:05 2013 +0900 +++ b/example/fft/Makefile.macosx Tue Oct 08 02:16:48 2013 +0900 @@ -6,17 +6,18 @@ SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cc=.o) +GPU_TASK_DIR = gpu TASK_DIR = ppe TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) TASK_SRCS_EXCLUDE = -TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) +TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) $(wildcard $(GPU_TASK_DIR)/*.cc) TASK_OBJS = $(TASK_SRCS:.cc=.o) CC = clang++ CC += $(ABI) # CFLAGS = -g -Wall# -O9 #-DDEBUG -INCLUDE = -I${CERIUM}/include/TaskManager -I. -I.. +INCLUDE = -I. -I.. -I${CERIUM}/include/TaskManager LIBS = -L${CERIUM}/TaskManager -lFifoManager `sdl-config --libs` .SUFFIXES: .cc .o
--- a/example/fft/gpu/gpu_task_init.cc Tue Oct 08 01:39:05 2013 +0900 +++ b/example/fft/gpu/gpu_task_init.cc Tue Oct 08 02:16:48 2013 +0900 @@ -4,10 +4,10 @@ void gpu_task_init(void) { - GpuSchedRegister(SPIN_FACT, "gpu/spinFact.cl", "spinFact"); + /* GpuSchedRegister(SPIN_FACT, "gpu/spinFact.cl", "spinFact"); GpuSchedRegister(BIT_REVERSE, "gpu/bitReverse.cl", "bitReverse"); GpuSchedRegister(NORMALIZATION, "gpu/norm.cl", "norm"); GpuSchedRegister(BUTTERFLY, "gpu/butterfly.cl", "butterfly"); GpuSchedRegister(TRANSPOSE, "gpu/transpose.cl", "transpose"); - GpuSchedRegister(HIGH_PASS_FILTER, "gpu/highPassFilter.cl", "highPassFilter"); + GpuSchedRegister(HIGH_PASS_FILTER, "gpu/highPassFilter.cl", "highPassFilter");*/ }