Makefile for CUDA/C++ code
Hi,
I'd like to write a Makefile for my CUDA/C++ code but I didn't know how things work with CUDA, I mean there is a nvcc compiler but I don't know what I've got to do with this. Do I have to firstly run nvcc and then g++ or only nvcc to compile my CUDA/C++ code ? I found nothing on the web explaining such basic things .... Can you help me ? thanks, |
I understood how it works by myself ...
Firstly you have to give the compiler path so that nvcc find it (but by default it goes in /usr/bin/ to look for it, I think) And you have to specify what programing language nvcc will deal with. By default nvcc use a C++ compiler. So the both command are the same for most UNIX platforms : Code:
nvcc -o mycodebin ./mycodesource.cpp |
All times are GMT -5. The time now is 02:43 PM. |