cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

niravshah00
Journeyman III

Brook+ examples on Visual Studio 2008

Hi,

I am trying to build a Hello_brook sample that comes with broook+

"C:\Program Files\ATI\ATI Brook+ 1.4.0_beta\samples\CPP\apps\HelloBrook"

But when i build it in VS2008 i get an the following result.

1>------ Build started: Project: hello_brook, Configuration: Debug Win32 ------
1>Performing Custom Build Step
1>The system cannot find the path specified.
1>Project : error PRJ0002 : Error result 255 returned from 'C:\Windows\system32\cmd.exe'.
1>Build log was saved at "file://c:\Program Files\ATI\ATI Brook+ 1.4.0_beta\samples\CPP\apps\HelloBrook\built_d\xp_x86_32\BuildLog.htm"
1>hello_brook - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I dont have a AMD firestream card and have to execute this on the CPU but i havent added theenvironment variable BRT_RUNTIME (do i have to add a new variable or it has to be present and i have to change it to CPU)

Second there is no step by step documention on how to get your first Brook+ program execute on VS

Any help would be highly appreciated.

 

0 Likes
27 Replies
LenAlox
Journeyman III

That is not a bad idea. I have actually gotten my own code working on MS2008 and running on my dual GPUs. I will post how I did it a bit later. But for now, you basically need to tell the compiler where the libraries are for Brook+ and CAL as well how to compile a .br file. All these things can be found in the brook+ guide and the provided samples.

0 Likes

.br file is compiled using brcc. If you look at the custom build step of br file, it searches for brcc in $(BROOKROOT)\sdk\bin.

You need to make sure BROOKROOT environment variable is set to Brook+ installation directory. There is no need to set BRT_RUNTIME, this env var is used during runtime and not compilation.

0 Likes

Gaurav,

I think i am missing some setting to be done on VS2008.

My Btook+ environment variable is set to "C:\Program Files\ATI\ATI Brook+ 1.4.0_beta\sdk\lib" as mentioned in the installation guide.

And i thought that the sample file that are made availabe with Brook+ are already compiled .

All I want is how to write a small code in brook+ compile it ans execute it so that i can start testing smaller programs and learn brook+.

Thanks for the reply

 

0 Likes

You can take a look at Brook+ Programming Guide (section 1.2.2) comming with open source Brook+ (http://sourceforge.net/projects/brookplus/).

0 Likes

Gaurav

Thanks for the link but the tar file has a file with run extension how do i open that.

0 Likes

Go to http://sourceforge.net/projects/brookplus/files/

It has zip files for windows too.

0 Likes

Gaurav,

 

I had already used this file well it was with a different name .

I have done everything mentioned in the file.

I tried uninstalling and re installing VS2008 even that did'nt work

 

0 Likes

Are you not able to compile samples coming with SDK?

0 Likes

I am trying to compile the samples only and still get the errors i have mentioned above.

 

 

0 Likes

Is BROOKROOT environment variable set on your machine?

0 Likes

yes it is set to the BROOKROOT\sdk\lib directory

 

0 Likes

How can BROOKROOT set to BROOKROOT\sdk\lib?

Make sure it is set to installation directory of Brook+.

0 Likes

Well thats what i meant

C:\Program Files\ATI\ATI Brook+ 1.4.0_beta\sdk\lib

0 Likes

Change it to C:\Program Files\ATI\ATI Brook+ 1.4.0_beta\

0 Likes

I still get the error but this time a different one

1>------ Rebuild All started: Project: hello_brook, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'hello_brook', configuration 'Debug|Win32'
1>Performing Custom Build Step
1>A subdirectory or file brookgenfiles already exists.
1>Compiling...
1>util.cpp
1>Timer.cpp
1>SampleBase.cpp
1>Main.cpp
1>HelloBrook.cpp
1>hello_brook.cpp
1>Generating Code...
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
1>Build log was saved at "file://c:\Program Files\ATI\ATI Brook+ 1.4.0_beta\samples\CPP\apps\HelloBrook\built_d\xp_x86_32\BuildLog.htm"
1>hello_brook - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

0 Likes

Hi

I could solve the link error the brook.lib path was wrong but I again get the same error with which i started off .

 

0 Likes

Can you make sure-

1. BROOKROOT environment variable points to Brook+ installation directory

2. $(BROOKROOT)\sdk\bin contains brcc.exe and brcc_d.exe

3. Custom build step of .br file compiles br file using brcc and look for it at $(BROOKROOT)\sdk\bin location.

4. $(BROOKROOT)\sdk\lib contains brook.lib aand brook_d.lib

5. Your library path is "$(BROOKROOT)\sdk\lib"

6. You are linking with brook.lib or brook_d.lib.

0 Likes

1.      BROOKROOT environment variable points to Brook+ installation directory
Yes BROOKROOT points to installation directory.

2.      $(BROOKROOT)\sdk\bin contains brcc.exe and brcc_d.exe
Yes

3.      Custom build step of .br file compiles br file using brcc and look for it at $(BROOKROOT)\sdk\bin location.
Are you talking abt the custom build in VS2008 .The command line has folloing entry
mkdir brookgenfiles | "$(BROOKROOT)\sdk\bin\brcc_d.exe" -o "$(ProjectDir)\brookgenfiles\$(InputName)" "$(InputPath)"

4.      $(BROOKROOT)\sdk\lib contains brook.lib aand brook_d.lib
Yes it contains both the files

      5.      Your library path is "$(BROOKROOT)\sdk\lib"
Yes 

6.      You are linking with brook.lib or brook_d.lib.
I m linking brook.lib

 

 

0 Likes

Any Help Guys

0 Likes

Any Help

0 Likes

LenAlox ,

 

What guide are u talking abt i did follow the installation guide that

Brook_Plus_Installation_Notes

I did everything thats mentioned in that as far as I remember

0 Likes

Now I installed VS2005 and i can build the sample peoject Hello_Brook but when i execute the exe file hello_brook i get the error saying the aticalcl.dll was not found .

The CALROOT environment variable is C:\Program Files\ATI\ATI CAL 1.4.0_beta

I tried CALROOT  C:\Program Files\ATI\ATI CAL 1.4.0_beta\lib\lh32

which has the aticalcl.dll file

 

Also how do execute the project from VS2005

 

0 Likes

I got to compile the samples But i dont know how to make a new project  in VS2005

What i did was created a random new project and added the br file to it it compiled fine and generated the Cpp and the header files but it did not genereate the exe file .

How do i go about it .

0 Likes

Now I installed VS2005 and i can build the sample peoject Hello_Brook but when i execute the exe file hello_brook i get the error saying the aticalcl.dll was not found .

 

The CALROOT environment variable is C:\Program Files\ATI\ATI CAL 1.4.0_beta

 

I tried CALROOT  C:\Program Files\ATI\ATI CAL 1.4.0_beta\lib\lh32

 

which has the aticalcl.dll file



aticalcl.dll is shipped with ATI display drivers? Do you have ATI card on your system.

0 Likes

No I dont have a card on my system i am excuting in CPU mode

I got to run a program on CPU but the problem is i have to work with the existing project and put my br file in it .

If i create a new project i cannot build the same br file even though i copy all the project setting .

I think it depends on the type of project i am creating , don't know which one I should create.

0 Likes

Are you able to compile and build your project?

You need to create a console application.

0 Likes

Yes I am able to compile and build in VS2005

 

0 Likes