<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Trying to replicate an example</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hello all!<BR>
<BR>
I'm trying to replicate an example in CUDA from this summer from Raymond.<BR>
<BR>
I am still trying to get the files to compile.  There is one CUDA file and one C file.<BR>
<BR>
<BR>
nvcc -c -arch=sm_13 VecAdd_kernel.cu VecAdd_kernel.o<BR>
bccd@node000:~/CUDA$ R CMD SHLIB -o VecAdd_cuda.so VecAdd_cuda.c VecAdd_kernel.o<BR>
gcc -std=gnu99 -shared -o VecAdd_cuda.so VecAdd_cuda.o VecAdd_kernel.o -L/usr/lib/R/lib -lR<BR>
/usr/bin/ld: VecAdd_kernel.o: relocation R_X86_64_32 against `VecAdd(double*, double*, double*, int)' can not be used when making a shared object; recompile with -fPIC<BR>
VecAdd_kernel.o: could not read symbols: Bad value<BR>
collect2: ld returned 1 exit status<BR>
make: *** [VecAdd_cuda.so] Error 1<BR>
<BR>
I have attached the files.<BR>
<BR>
Any help would be much appreciated.<BR>
<BR>
Thanks,<BR>
Sincerely,<BR>
Erin<BR>
<BR>
<BR>
<BR>
Erin M. Hodgess, PhD<BR>
Associate Professor<BR>
Department of Computer and Mathematical Sciences<BR>
University of Houston - Downtown<BR>
mailto: hodgesse@uhd.edu<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>