MESSAGE
DATE | 2016-11-01 |
FROM | Ruben Safir
|
SUBJECT | Subject: [Learn] how is it indexing in cuda
|
From learn-bounces-at-nylxs.com Tue Nov 1 20:17:00 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 B6141161312; Tue, 1 Nov 2016 20:16:59 -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 1A9FE160E77; Tue, 1 Nov 2016 20:16:57 -0400 (EDT) To: Samir Iabbassen , learn-at-nylxs.com From: Ruben Safir Message-ID: <69bd63a0-9c7f-dbd9-9846-fe71ada4dde6-at-mrbrklyn.com> Date: Tue, 1 Nov 2016 20:16:57 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Subject: [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"
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 _______________________________________________ Learn mailing list Learn-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/learn
|
|