Replace ccall to @cucall in gen_libcuda.jl to check function result