[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Build rules for CUDA source files
From: |
Adam Mercer |
Subject: |
Build rules for CUDA source files |
Date: |
Thu, 9 Sep 2010 15:17:03 -0500 |
Hi
I'm working on adding some code that uses the NVidia CUDA compiler and
libraries to one of our projects. I believe that I have added the
appropriate rules to Makefile.am to specify how to do the build:
noinst_LTLIBRARIES = libfft.la
libfft_la_SOURCES = \
TimeFreqFFT.c \
AverageSpectrum.c \
Convolution.c
CudaComplexFFT.c \
CudaRealFFT.c \
FFTWMutex.c \
CudaFunctions.c \
CudaFFT.cu
pkginclude_HEADERS = \
ComplexFFT.h \
RealFFT.h \
FFTWMutex.h \
TimeFreqFFT.h \
CudaPlan.h
.cu.o:
$(NVCC) -c $(INCLUDES) $(CPPFLAGS) $(NVCCFLAGS) -o $@ $<
however when I build the CudaFFT.cu source is not built, but I can
build it manually with "make CudaFFT.o", is this due to automake not
recognising CudaFFT.cu as a source file?
How can I get CudaFFT.o to be built automatically?
Cheers
Adam
PS: I'm working on adding support into automake to support CUDA and
almost have something ready but I'd like to also get the above
working.
- Build rules for CUDA source files,
Adam Mercer <=