In a one dimensional organization, we use only threadIdx.xĪnd blockDim.x. Number of threads Number of data items tasksjobs It means that youâll have to come up with a rule to match a thread to a data itemtaskjob that this thread needs to. Number of threads & blocks is established at run-time. The builtin variable blockDim holds the number Using threads In GPU computing you use as many threads as data items tasks jobs you have to perform This replaces the typical for loop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |