BrookGPU: Getting Started

Home
Introduction
Forums
Getting Started
Language
Architecture
BRCC
BRT
BRT C++
Current Issues
Research
Sponsors

Hardware Prerequisites

Software Prerequisites

The compiler and CPU runtime should build on any host with the standard GNU toolchain: Alternatively, running with the GPU runtimes requires the following:

BRCC will look for cgc and fxc (the HLSL compiler from the DirectX 9 SDK) in the path. Following the default installations, cgc.exe is in C:\Program Files\NVIDIA Corporation\Cg\bin and fxc.exe is in C:\DX90SDK\Utilities.

Additionally, compiling the DirectX runtime requires your INCLUDE and LIB paths include the DirectX 9 directories. With the default installations, these are C:\DX90SDK\Include and C:\DX90SDK\Lib.

Compiling Brook GPU

Everything, including all the test programs and sample applications, can be built by typing:

 	make
at the top level. You can run make from within any subdirectory to build just that directory.

Building And Running Brook Programs

There are some toy programs used for testing the compiler and runtime in prog/tests/ and more interesting programs in prog/apps/ that can be used as examples. Basically, BRCC converts .br files into .cpp files which are then compiled and linked against the runtime brook.lib. At runtime, brook.lib selects the backend based on the environment variable BRT_RUNTIME. The CPU backend is chosen by default and the values "dx9", "ogl", and "ctm" select their respective backends.


&&type=2" height="37" width="125" border="0" alt="SourceForge.net Logo" /> The fly fishing flies featured on this web site can be purchased at The English Fly Fishing Shop

AltStyle によって変換されたページ (->オリジナル) /