/tomo/pyhst

To get this branch, use:
bzr branch http://darksoft.org/webbzr/tomo/pyhst

« back to all changes in this revision

Viewing changes to hst_cuda/hst_cuda_kernels.h

  • Committer: Suren A. Chilingaryan
  • Date: 2011-05-31 07:43:16 UTC
  • Revision ID: csa@dside.dyndns.org-20110531074316-w1i4zg6xvdgt9nee
Fix compilation of CUDA module

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
 
295
295
 
296
296
 
297
 
__global__ static void hst_cuda_gt200_kernel(int num_proj, int num_bins, float *d_SLICE, float apos_off_x, float apos_off_y, int batch) {
 
297
__global__ static void hst_cuda_kernel(int num_proj, int num_bins, float *d_SLICE, float apos_off_x, float apos_off_y, int batch) {
298
298
    const int idx = blockIdx.x * BLOCK_SIZE_X + threadIdx.x;
299
299
    const int idy = blockIdx.y * BLOCK_SIZE_Y + threadIdx.y + batch;
300
300
 
395
395
    d_SLICE[ BLOCK_SIZE_X*gridDim.x*idy + idx ] = res;
396
396
}
397
397
 
398
 
__global__ static void hst_cuda_kernel(int num_proj, int num_bins, float *d_SLICE, float apos_off_x, float apos_off_y, int batch) {
 
398
__global__ static void hst_cuda_linear_kernel(int num_proj, int num_bins, float *d_SLICE, float apos_off_x, float apos_off_y, int batch) {
399
399
    const int tidx = threadIdx.x;
400
400
    const int tidy = threadIdx.y;
401
401