cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

riza_guntur
Journeyman III

How to use CPU Backend?

I keep reading about CPU backend in ATI Stream SDK and also gaurav.garg told me about activate it through brcc option (-nl)

I read that I must do BRT_Runtime=cpu but where should I create it? Since in windows environment variables I don't see its existance, I'm afraid if I create it without knowing anything would cause trouble.

And what happen if I activate such runtime?

Thanks in advance

0 Likes
4 Replies
ryta1203
Journeyman III

It's ok, just add it.

0 Likes

After build Brook+ application, you can run on any supported device by specifying BRT_RUNTIME

 

if BRT_RUNTIME is not created or BRT_RUNTIME=cal, it runs on ATI GPU

if BRT_RUNTIME=cpu, it runs on CPU.

 

if you specify -nl, brcc won't generated line number information in generated inforation. this allows you to debug generated .cpp file.

0 Likes

Create like usual, like this?

http://img291.imageshack.us/img291/2245/brtruntimecpu.png

Will the generated code runs in CPU using all cores of my CPU?

Thank you

0 Likes

1. Yes, like that.

2. No, I don't think so, it doesn't generate OpenMP code or anything like that.

0 Likes