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 -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.