error compiling gesv

Support for issues specific to the Linux operating systems.

error compiling gesv

Postby egyptwangja » Sun Apr 18, 2010 8:58 pm

Hi,

I am new to CULA, and I wanted to use gesv in my CUDA application.
I copied the code from gesv.c in the example folder (floating point part) and appended in my existing cuda file (.cu). I have installed CULA and set all the variables as instructed. When I try to compile, I get the following error:

/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasDtrmv'
/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasZswap'
/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasZaxpy'
/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasCtrmv'
/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasZtrmv'
/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasZcopy'
/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasCgemv'
/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasCtrmm'
/homes/c/choijon5/cula/lib/libcula.so: undefined reference to `cublasZtrmm'

This is my Makefile
#############################################################################
EXECUTABLE := fastplace

# CUDA sources files (compile with cudacc)
CUFILES := \
fastplace.cu

# CUDA dependencies files
CU_DEPS := \
fastplace.cuh \
fastplace_kernel.cu

# C++ source files (compiled with gcc / c++)
CCFILES := \
graphics.c

USECUBLAS := 1
#############################################################################
# Rules and targets

# Flags
CXXFLAGS += -DX11
CFLAGS += -DX11

# Includes
INCLUDES += -I/usr/X11R6/include
INCLUDES += -I..cusp/thrust
INCLUDES += -I../cusp
#CULAS
INCLUDES += -I${CULA_INC_PATH}

# Include CUDA common build script
include ../../common/common.mk

# Lib
LIB += -lX11 -lm -lcula -lcublas -lcudart
LIB += -L${CULA_LIB_PATH_32}


#############################################################################

Any help would be appreciated.
Thanks.
egyptwangja
 
Posts: 2
Joined: Mon Mar 29, 2010 11:26 am

Re:error compiling gesv

Postby john » Mon Apr 19, 2010 6:19 am

Please make sure that you use the libcublas.so located in your CULA directory rather than the one in the CUDA directory.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm


Return to Linux Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron