python for循环代码用cuda改写

刚学cuda编程,想将python 两重for循环,想改用cuda核函数实现,可是两种方法的结果一直对应不上。无助:'(