/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/src/validate.cpp

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-22 13:42:41 UTC
  • Revision ID: csa@dside.dyndns.org-20100422134241-fv5m2ufk8n2tc9h5
Implementation of image and fragment modes, support for non-cacheable grids

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    int size = ps->fft_size;
41
41
    int size2 = size*size;
42
42
    int alloc_size = ps->fft_alloc_size;
 
43
    
 
44
    if (!ps->use_cache) icp = 0;
43
45
 
44
46
    if (lsum) {
45
47
        cudaMemcpy(lsum, ps->cuda_lsum_cache + icp * alloc_size, size2*sizeof(float), cudaMemcpyDeviceToHost);
51
53
 
52
54
    return 0;
53
55
}
 
56