// NetBeans OpenCL Pack

Since I am doing a lot with OpenCL lately I decided to try to improve the tooling around OpenCL a bit. A weekend later the NetBeans OpenCL Pack was born :).

Features Including:

  • OpenCL Editor with syntax highlighting code completion and CL reference pages integration
  • OpenCL compiler integration
  • In-editor annotations of compiler warnings and errors updated as you type
  • JOCL project template

Technical Details:

The editor uses ANTLR as parser and lexer. This allows such simple things like keyword highlighting and also more complex features like semantic highlighting, formatting and auto completion (formatting is not yet implemented). It can also detect and report syntax errors, however this feature is automatically disabled if an OpenCL compiler is present on the host system. All with help of JOCL detected OpenCL implementations can be used as compiler backend.

Instead of using the old OpenGL Pack as template I decided to write it from scratch using latest NetBeans 7 and Java 7 APIs. So you will have to start NB with JDK7 to be able to use it.

Download

you can download it from the NetBeans plugin portal [mirror], sourcecode is on github

feedback and/or contributions/bugreports are as always appreciated

Screenshots:

auto completion editor project templates

have fun!




Comments:

It is about time, someone introduced OpenCL support in NetBeans! Excellent!!!

Posted by 89.136.133.30 on August 30, 2011 at 06:40 PM CEST #

thanks 89.. I am glad you like it

Posted by mbien on August 31, 2011 at 07:43 PM CEST #

Great Work! I have been working with OpenCL and CUDA or a while and this is really great for prototyping work. I am already using it as a base for my prototyping.

Some Suggestions

You might want to say it is using the JOCL from http://jogamp.org/
and not the JOCL from http://www.jocl.org/
The JOCL you are not using here was the first one available and as such most people familiar with OpenCL will know that one (I made this mistake). Also they include different APIs (The original being lower level and closer to actual OpenCL) so it is an important distinction.

It would be great it you could add JOGL to this. Have you got OpenGL/OpenCL interop working with JOCL using your library? I haven't used JOGL in a while and I am a little confused.

Posted by Jim on November 02, 2011 at 07:05 PM CET #

hi Jim,
great to hear that you like the plugin.

JOCL (jogamp.org) was already available before stable vendor driver where released. I wrote it as sideproject for my bachelor thesis. When I talk about jocl in this blog i mean the lib which is based on the same technology like jogl or joal and is part of the jogamp community.

We had once a NB GL pack but i am afraid it isn't any longer maintained.

GL/CL interop works of course. checkout the demos.

Posted by mbien on November 02, 2011 at 08:50 PM CET #

any plans for c/c++ support?

Posted by 110.175.162.239 on November 11, 2011 at 04:31 AM CET #

@110
no sorry. However the OpenCL editor does not depend on any host language, so you could use it right now in a C++ project (or any other project type).

Posted by mbien on November 11, 2011 at 06:55 AM CET #

Hello
I need your help urgently, I want install this plusgin under netbeans, but I can't understand how i do it .
please help me

Posted by zerhem on March 19, 2013 at 05:02 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed