I’m trying to get an imaging problem writenn in c++ to work with some CUDA kernels to see if I can get a decent speed up. However, I get that infamous “error: support for exception handling is disabled”. Now, I know that I have to append --host-compilation c++ to the nvcc call, but I’m completely incapable of finding where to set that up in eclipse. Been googling for hours now, and despite always ending up in project options, I can’t see where to give compiling options to nvcc compiler, only find gcc/gcc++ ones.
Hopefully someone around here is better versed in Eclipse than me and can give me the solution.
However if you go through that link… one of the screenshots show that you should get the NVIDIA nvcc tool chain editor option after you have installed the updates…I dont get that option!..ive installed the updates but the NVDIA nvcc option does not show up on projects->properties>c++ Build->tool chain editor.
Kinda stuck, if you have worked you way around this…please let me know.
However if you go through that link… one of the screenshots show that you should get the NVIDIA nvcc tool chain editor option after you have installed the updates…I dont get that option!..ive installed the updates but the NVDIA nvcc option does not show up on projects->properties>c++ Build->tool chain editor.
Kinda stuck, if you have worked you way around this…please let me know.
However if you go through that link… one of the screenshots show that you should get the NVIDIA nvcc tool chain editor option after you have installed the updates…I dont get that option!..ive installed the updates but the NVDIA nvcc option does not show up on projects->properties>c++ Build->tool chain editor.
Kinda stuck, if you have worked you way around this…please let me know.
However if you go through that link… one of the screenshots show that you should get the NVIDIA nvcc tool chain editor option after you have installed the updates…I dont get that option!..ive installed the updates but the NVDIA nvcc option does not show up on projects->properties>c++ Build->tool chain editor.
Kinda stuck, if you have worked you way around this…please let me know.
ctrl + mouse click on your project name → select properties (or on the menu project → properties)
c/c++ build → tool chain editor
uncheck display compatible toolchains only
I believe the nvcc toolchain will be in the current toolchain listing, or in the used tools box. I installed the plugin from the website, but couldn’t get the make to build correctly.
Post your results if you are successful so I can attempt as well.
If you want, you can use this simple Makefile hack I created. Just copy and drop it within the top directory structure of your project (and modify it to fit you needs).
ctrl + mouse click on your project name → select properties (or on the menu project → properties)
c/c++ build → tool chain editor
uncheck display compatible toolchains only
I believe the nvcc toolchain will be in the current toolchain listing, or in the used tools box. I installed the plugin from the website, but couldn’t get the make to build correctly.
Post your results if you are successful so I can attempt as well.
If you want, you can use this simple Makefile hack I created. Just copy and drop it within the top directory structure of your project (and modify it to fit you needs).
i did the toolchain thing u said…now the problem is i get an error saying nvcc: command not found…I have set my path variable through the terminal. If i try to run a program in the terminal, it seems to works fine, But not in eclipse. Ive spent a lot of time in this, kinda desperate to get this fixed. Plz help.
Yes! Alright, so you get got the toolchain problem resolved!
For Eclipse to recognize “nvcc”, I believe you need to set the environmental variables for your project:
Click on your project name
Ctrl + mouse click and select properties (it should be at the bottom of the list)
Click on C/C++ Build → Environment
You will see the box "Environmental variables to set … I think this is where you will need to add the variable PATH with /usr/local/cuda/bin as its value
While you’re at it, you should probably add the Environmental Variable DYLD_LIBRARY_PATH with value /usr/local/cuda/lib
Hopefully this works. You can check out my blog for a quick how-to on CUDA + Eclipse Integration. Though, I take the route of creating my own makefile and dropping it into my project.