|
BrookGPU: Getting Started |
Home Introduction Forums Getting Started Language Architecture BRCC BRT BRT C++ Current Issues Research Sponsors |
Hardware Prerequisites
Software PrerequisitesThe compiler and CPU runtime should build on any host with the standard GNU toolchain:
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 GPUEverything, including all the test programs and sample applications, can be built by typing: makeat the top level. You can run make from within any subdirectory to build just that directory. Building And Running Brook ProgramsThere 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. |
The fly fishing flies featured on this web site can be purchased at The English Fly Fishing Shop |