Topic
No replies
BE33_Xiaofeng_Xu
BE33_Xiaofeng_Xu
4 Posts
ACCEPTED ANSWER

Pinned topic problem with cuda udf

‏2012-09-05T23:51:07Z |
Hi all,

I'm doing some staff about integrating db2 and gpu using user defined function. Specifically, I'm trying the create a UDF with cuda code. But I cannot get the gpu based udf work.The error info is like below,

SQL0444N Routine "COUNTV" (specific name "SQL120812142353300") is implemented
with code in library or path ".../sqllib/function/countv_gpu", function
"countv" which cannot be accessed. Reason code: "5". SQLSTATE=42724

I have no idea what's going wrong. I use the following command to compile my example.cu file.

CC=nvcc
CC2=gcc
DB2PATH=/home/db2inst2/sqllib
LIB="lib"
$CC -Xcompiler -fPIC -I$DB2PATH/include -c example.cu -D_REENTRANT
$CC2 -shared -o example example.o -L$DB2PATH/$LIB -ldb2 -lpthread

Can anybody help?

Thank you very much.

best,
Xiaofeng Xu