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

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

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

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)

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