discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] gr-fosphor : New RTSA-like visualization block fo


From: Darren Long
Subject: Re: [Discuss-gnuradio] gr-fosphor : New RTSA-like visualization block for GNURadio using GPU acceleration
Date: Sun, 27 Oct 2013 14:44:19 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

Hi Alex,

The benchmark utility source is in gr-fosphor/lib/fosphor

I had to run make manually, but in order to get it to build I had to bodge it. The changes I made are in the diff below.

=======================
diff --git a/lib/fosphor/Makefile b/lib/fosphor/Makefile
index a1ea187..3500d64 100644
--- a/lib/fosphor/Makefile
+++ b/lib/fosphor/Makefile
@@ -1,6 +1,7 @@
 UNAME=$(shell uname)
 CC=gcc
-CFLAGS=-Wall -Werror -O2 `pkg-config freetype2 glfw3 --cflags` -g
+#CFLAGS=-Wall -Werror -O2 `pkg-config freetype2 glfw3 --cflags` -g
+CFLAGS=-Wall  -O2 `pkg-config freetype2 glfw3 --cflags` -g
 LDLIBS=`pkg-config freetype2 glfw3 --libs` -lm
 ifneq ($(AMDAPPSDKROOT), )
 CFLAGS+=-I$(AMDAPPSDKROOT)/include
diff --git a/lib/fosphor/cl_platform.h b/lib/fosphor/cl_platform.h
index cf3376d..cd2dc29 100644
--- a/lib/fosphor/cl_platform.h
+++ b/lib/fosphor/cl_platform.h
@@ -39,7 +39,7 @@
 #endif

 #ifdef CL_VERSION_1_2
-# define clCreateFromGLTexture2D clCreateFromGLTexture
+// DML Hack # define clCreateFromGLTexture2D clCreateFromGLTexture
 #endif

 #ifndef CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV

=========================

I then ran make in gr-fosphor/lib/fosphor. Then I recorded some stuff with grc and then invoked the benchamrk utility:

address@hidden:~/src/gr-fosphor/lib/fosphor$ ./main ~/grdata2013.10.27.12.10.20.dat


Hope that helps.

Darren



On 27/10/13 14:35, Alexandru Csete wrote:
How do you run the benchmark or test? I have now rebuilt with glfw
support but I can't find any programs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]