cusp re-declaring cups functions

44 views
Skip to first unread message

William Armando Muñoz

unread,
Apr 8, 2014, 6:50:05 AM4/8/14
to cusp-...@googlegroups.com
Hello cuspers,

I'm dealing with some issues like this:

warning: a __host__ function("cusp::conj") redeclared with __host__ __device__, hence treated as a __host__ __device__ function

when I compiled with code with CUDA 5.0 and cusp 3.1.
Any idea how I can fix it? 

Cheers,

William

--
William Armando Muñoz, PhD Student
Condensed Matter Theory Group
Department of Physics of the University of Antwerpen
Groenenborgelaan 171, Room 209
B-2020 Antwerpen

Steven Dalton

unread,
Apr 8, 2014, 7:46:22 PM4/8/14
to cusp-...@googlegroups.com
Hello William,

  Can you send me your complication parameters? I suspect you are trying to compile your application with the thrust backend set as OMP or CPP.

Steve

--
You received this message because you are subscribed to the Google Groups "cusp-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cusp-users+...@googlegroups.com.
To post to this group, send email to cusp-...@googlegroups.com.
Visit this group at http://groups.google.com/group/cusp-users.
For more options, visit https://groups.google.com/d/optout.

William Armando Muñoz

unread,
Apr 9, 2014, 1:22:59 PM4/9/14
to cusp-...@googlegroups.com
Hi Steven,

My Makefile looks like this:

NVCC=nvcc

NVCC_OPTS=-l cufft -I /data/home/wmunoz/libraries/ -Xcompiler -fopenmp -lgomp
GCC_OPTS=-O3 -ccbin=/usr/bin/g++-4.6
OBJECTS=phase.o latt2d_vac.o mt.o


xmaker: phase.o latt2d_vac.o mt.o
$(NVCC) -o exe phase.o latt2d_vac.o mt.o  $(NVCC_OPTS)

phase.o: phase.cu latt2d_vac.cpp mt.cu icheb2d_disorder.cpp Myfun.cpp
nvcc -c phase.cu $(GCC_OPTS) $(NVCC_OPTS)

latt2d_vac.o: latt2d_vac.cpp latt2d_vac.h
nvcc -c latt2d_vac.cpp $(GCC_OPTS)

mt.o: mt.cu mt.h
nvcc -c mt.cu $(GCC_OPTS)

clean:
rm -f *~ $(OBJECTS) exe

both thrust 1.7 and cusp 0.3.1 libraries are in my home-dir.

Regards,

William
Reply all
Reply to author
Forward
0 new messages