CUDA using Eclipse CDT (C++ Development Tool)

CUDA’s sample projects uses some automated makefile which is not initially usable by Eclipse.

1. Create Eclipse Makefile Project

2. Modify common.mk

By default, CUDA’s makefile includes common.mk. When I try to use the makefile, Eclipse complains “no target error”
So, I just added “all: $(TARGET)” in the target section in common.mk

Then, I tried Eclipse again. It complains “nvcc” not found. Great. Just modify nvcc into /usr/local/cuda/nvcc

Finally, everything works great.
Be sure that existing projects doesn’t have any side effects by modifying common.mk

My environment:
Mac Book Pro (Intel)
OS: OS X 10.5.2 (Leopard)
GPU: 8600M GT 128MB
IDE: Eclipse CDT (eclipse-cpp-europa-winter-macosx-carbon)

Advertisements
Posted in CUDA, MPMD. Tags: , , . 8 Comments »