cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

jski
Journeyman III

Newbie question about sample code?

Sample code problem?

1st, I'm using SLES 10.

I followed the instruction for installing BROOK+CAL contained in "readme_install.txt" (choosing to install in /usr/local). I then went to the sample code in /usr/local/amdbrook/samples/apps/optimized_matmult and ran "make".   All went fine and a  "built_d" directory was created.  Its contents are listed below:

-rw-r--r--  1 root root 198232 2008-06-23 16:44 common.o
-rw-r--r--  1 root root  20451 2008-06-23 16:44 optimized_matmult.cpp
-rw-r--r--  1 root root  65110 2008-06-23 16:44 optimized_matmult_gpu.hpp
-rw-r--r--  1 root root 627560 2008-06-23 16:44 optimized_matmult.o
-rw-r--r--  1 root root  32840 2008-06-23 16:44 Timer.o

But where's the "a.out" or whatever the executable is named?

-jski

 

0 Likes
4 Replies

Hi jski,

Go up to the samples/bin directory. I believe the makefile put the binaries up there instead of in the directory for cleanliness.

Michael.
0 Likes

THANKS!  Should have looked in the Makefile (OUTPUTBASE := samples/bin) - duhhh!

---Jski

0 Likes

I built and ran this (optimized_matmult_d) on an Opteron box with an NVidia Quadro FX 540.  No problems!  I assume it's using the NVidia GPU?

---jski

0 Likes

Hi jski,

Most likely you were running using the CPU backend which allows you to run completely on the CPU for easier debugging.

Check your BRT_RUNTIME env variable. Brook+ does not work on NVIDIA GPUs.

Michael.
0 Likes