Anybody has a simple C Syntax Highlighting Plugin for Eclipse ?
So that my Kernel *.cu Files can be highlighted.
Anybody has a simple C Syntax Highlighting Plugin for Eclipse ?
So that my Kernel *.cu Files can be highlighted.
Hello
I’m not sure if you need a plugin for that.
You may try
In the menu: Window -> Preferences
In the tree: General -> Editors -> File Associations
Top right: Press “Add…” and add *.cu as a file Association
Bottom right: Press “Add…” and select “C/C++ Editor” as an associated editor.
If the “C/C++ Editor” is not available, it might be necessary to install a plugin, but I’m not sure. You could at least use the “Java Editor” to get Keywords (int, if, else…) highlighted.
bye
Marco
[QUOTE=Marco13]Hello
If the “C/C++ Editor” is not available, it might be necessary to install a plugin
[/QUOTE]
Yes, but i have not found one just for highlighting
What exactly do you mean? Admittedly, I only tested this with a small example and 3 lines of code, are there any problems with larger examples or the editing?
I looked forward to find a C-Cuda Syntax Highlighting Plugin for Eclipse, maybe I will check how to do it myself.
In Ultra-Edit doing this is very easy, have to check Eclipse Doc for it.
I want to rename my cuda file extension from „cu“ to „cpp“ with success.
Because i have visual studio installed and so i can get syntax highlighting for free
In nvcc manual it says.
Nvcc does not make any distinction between object, library or resource files. It
just passes files of these types to the linker when the linking phase is executed.
But programm crashes and says it cannot open my cubin file!
Cant I create a cubin file from a cpp ?
You have to make sure that the respective file is compiled with the CUDA Build Rule. But I still do not see the problem of applying the C syntax highlighting to CU files in any Editor, be it TextPad or Eclipse or even Visual Studio…
cuda build rule, have no idea what this is, and i am not so into the compiler stuff and setup,
(just want to programm)
yeah -.- it was just too easy :D, associated cu with c++ in visual studio,
why did all other tutorials i read said something about registry hacks -.-, if there is a option for it, but now i worked, :D, and my kernels are all almost finished, i just want it to get syntax highlighting in my slides and thesis
I’d also have to look up how this can be achieved for individual files, but you have to tell VS that it should compile the respective files NOT with the normal C compiler, but with the NVCC. As a starting point, I’d open one of the NVIDIA examples, and right-click on one of the .CU files: They are somehow associated with the “CUDA Build Rule” in the Project Configuration. Things like TextPad could also be an option. You could even add the additional keywords to let them be highlighted.