我跑的阵列上的推力并行二进制搜索型例程: // array and array2 are raw pointers to device memory
thrust::device_ptr<int> array_ptr(array);
// Search for first position where 0 could be inserted in array
// without viol
__global__ void HYPER (int tFast, int tFastLenth, int kilo, int lenPrzvFast, double eps, int AF,double *arrINTLighFast, int *arrPrzvFncFst, int dv_ptr)
{
for(int j = 0;j<(tFast*tFastLenth);j
我正试图用arrayfire替换一些推送电话来检查性能。 我不知道我是否正确使用阵列火灾,因为我采取的结果根本不匹配。 所以,例如我使用的推力代码: cudaMalloc((void**) &devRow, N * sizeof(float));
...//devRow is filled
thrust::device_ptr<float> SlBegin(devRow);
for (in