cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

drstrip
Journeyman III

compiling .cl kernel files

I know I can compile a .cl file via the clBuildProgram API call. What I want to know is whether there is a way to call the compiler directly, preferably in a way that integrates with Visual Studio so that errors and warnings are passed back and can be found via F4 function key like the C/C++ part of the program.

0 Likes
2 Replies
Illusio
Journeyman III

If you had the installer add the SDK to the path for you, just open a command prompt and type "clc yoursourcefilename.cl"

On my machine, the compilers are located at:

C:\Program Files (x86)\ATI Stream\bin\x86_64\clc.exe

and

C:\Program Files (x86)\ATI Stream\bin\x86\clc.exe

The compiler output is pretty standard so I'm sure it's possible to integrate it with Visual Studio, but I haven't bothered myself.

0 Likes

Thanks for the info.

I created a rule file for .cl files that calls the compiler. The output appears in the "Output" window of VS2008, and the F4 key moves the cursor to each error in turn.  That was easy.

 

0 Likes