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:
darren@betty:~/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.
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio