Results 1 to 2 of 2

Thread: Index problem

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    9

    Index problem

    There is a command for have the same CUDA code on OpenCL:
    int tx=threadIdx.x;??
    and
    int bx=blockIdx.x;??
    i know function:get_global_id(0); ==blockIdx.x * blockDim.x + threadIdx.x;
    Any solution?

  2. #2
    Junior Member
    Join Date
    Apr 2010
    Posts
    9

    Re: Index problem

    Quote Originally Posted by dave88
    There is a command for have the same CUDA code on OpenCL:
    int tx=threadIdx.x;??
    and
    int bx=blockIdx.x;??
    i know function:get_global_id(0); ==blockIdx.x * blockDim.x + threadIdx.x;
    Any solution?
    ok i find soltuion

Similar Threads

  1. Replies: 3
    Last Post: 06-09-2010, 06:18 AM
  2. Parameters index inside a kernel
    By buci in forum OpenCL
    Replies: 1
    Last Post: 05-25-2010, 05:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •