MESSAGE
DATE | 2016-11-02 |
FROM | Ruben Safir
|
SUBJECT | Re: [Learn] how is it indexing in cuda
|
From learn-bounces-at-nylxs.com Wed Nov 2 00:39:14 2016 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 0253D161312; Wed, 2 Nov 2016 00:39:13 -0400 (EDT) X-Original-To: learn-at-nylxs.com Delivered-To: learn-at-nylxs.com Received: from [10.0.0.62] (flatbush.mrbrklyn.com [10.0.0.62]) by mrbrklyn.com (Postfix) with ESMTP id A192D160E77; Wed, 2 Nov 2016 00:39:11 -0400 (EDT) To: Samir Iabbassen , learn-at-nylxs.com References: <69bd63a0-9c7f-dbd9-9846-fe71ada4dde6-at-mrbrklyn.com> <1478051308634.56730-at-liu.edu> From: Ruben Safir Message-ID: <474a8e92-1069-9d60-616f-0ac858da24f0-at-mrbrklyn.com> Date: Wed, 2 Nov 2016 00:39:11 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1478051308634.56730-at-liu.edu> Subject: Re: [Learn] how is it indexing in cuda X-BeenThere: learn-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: learn-bounces-at-nylxs.com Sender: "Learn"
OK 0 it is 12:30 so I just finished with the slides. I think I understand everything on them, although I'm missing a cuda device to program on. The slide made some enlightenment on the problems in the video, but not completely. I'll go back and look at it again.
For reference the video is at
https://classroom.udacity.com/courses/cs344/lessons/55120467/concepts/967066740923#
the slides are
http://www.nylxs.com/docs/grad_school/parallel/Introduction_to_CUDA_C.pptx
On 11/01/2016 09:48 PM, Samir Iabbassen wrote: > Take a look at this document if you have time.I can explain why and how we use indexing in CUDA tomorrow. > http://users.wfu.edu/choss/CUDA/docs/Lecture%205.pdf > > You may take a look at other related lectures for CUDA programming on http://users.wfu.edu/choss/CUDA/docs/ > > > > > ________________________________________ > From: Ruben Safir > Sent: Tuesday, November 1, 2016 8:16 PM > To: Samir Iabbassen; learn-at-nylxs.com > Subject: how is it indexing in cuda > > This slide says we have block and threads. If we are indexing on both > then it says > > - With M threads/block a unique index for each thread is given by: > int index = threadIdx.x + blockIdx.x * M; > > > I don't understand this at all. > > this is slide 39 > > > I have two coordinates. Why am I adding M? > > -- > So many immigrant groups have swept through our town > that Brooklyn, like Atlantis, reaches mythological > proportions in the mind of the world - RI Safir 1998 > http://www.mrbrklyn.com > > DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 > http://www.nylxs.com - Leadership Development in Free Software > http://www2.mrbrklyn.com/resources - Unpublished Archive > http://www.coinhangout.com - coins! > http://www.brooklyn-living.com > > Being so tracked is for FARM ANIMALS and and extermination camps, > but incompatible with living as a free human being. -RI Safir 2013 > >
-- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013 _______________________________________________ Learn mailing list Learn-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/learn
|
|