在http://www.jcuda.org/samples/samples.html上,目前有JCusolverSamples20151013.zip可供下载。似乎当前版本的jcuda如0.7.5或0.7适合它。
然而,两个java文件之一的JCusolverSp_LinearSolver_Direct.java无法编译,并且它包含3个不同方法的5个错误。所有错误消息都类似于以下关于最后一个参数差异的消息,'Pointer'而不是'int []':
The method cusolverSpDcsrlsvchol(cusolverSpHandle, int, int, cusparseMatDescr, Pointer, Pointer, Pointer, Pointer, double, int, Pointer, Pointer) in the type JCusolverSp is not applicable for the arguments (cusolverSpHandle, int, int, cusparseMatDescr, Pointer, Pointer, Pointer, Pointer, double, int, Pointer, int[])
我还检查了JCuda 0.7.0,关于这些方法的API是相同的。我是Jcuda的新手,所以我不知道如何修改示例JCusolverSp_LinearSolver_Direct java文件。如何使它工作?