maximum number of threads per block

i have the following information:

Maximum number of threads per block: 512 Maximum sizes of each dimension of a block: 512 x 512 x 64

does this mean that the maximum number of threads in a 2d thread block is 512x512 which gives me a 262144 threads in every block?
if yes, then is it a good practice to have this number of threads in a a kernel of minimum 256 blocks?


no, it means that the maximum threads pr block is 512,

You can decide how to lay that out over [1 ... 512] x [1 ... 512] x [1 ... 64].

For instance 16x16 would be ok i 2D.

As for the deciding on the size of the block, lots of things come into consideration, like the amount of mem a block needs and how big a half-warp is on the hardware(i don't remember if its alwais 16 on nVidia hardware).

No, that means that your block can have 512 maximum X/Y or 64 Z, but not all at the same time. In fact, your info already said the maximum block size is 512 threads. Now, there is no optimal block, as it depends on the hardware your code is running on, and also depends on your specific algorithm.

Does it mean if we define more than the maximum possible threads/block we get an error?

Category:cuda Time:2011-07-07 Views:1
Tags: cuda gpu

Related post

  • Maximum number of threads per process in Linux? 2008-12-05

    What is the maximum number of threads that can be created by a process under Linux? How (if possible) can this value be modified? --------------Solutions------------- Linux doesn't have a separate threads per process limit, just a limit on the total

  • What's the maximum number of threads in Windows Server 2003? 2009-01-27

    Does anyone know? And a bigger question is what happens when you encounter this maximum? Is this the same number with other Windows OSs such as Vista, XP etc.? --------------Solutions------------- First I would advise reading this: http://blogs.msdn.

  • Maximum number of threads in a .NET app? 2008-09-28

    What is the maximum number of threads you can create in a C# application? And what happens when you reach this limit? Is an exception of some kind thrown? --------------Solutions------------- There is no inherent limit. The maximum number of threads

  • Maximum number of threads 2010-10-02

    I have a program which accepts 2 N-digit numbers, multiplies them using threads & prints the output. The number of threads created here are 2 * N - 1. whenever I run the program for N > 151, the program gives me a segmentation fault. Is there

  • Tomcat 6 going down after reaching its maximum number of threads 2011-03-08

    Our Tomcat 6.0.29 goes down after reaching its maximum number of Threads. I would really appreciate any help with it because it is a production server. Here is part of the catalina.log file: INFO: Maximum number of threads (600) created for connector

  • What is the maximum number of threads available in ThreadPool 2011-07-08

    Just out of curiosity , What is the maximum number of threads available for handling request in And does releases them for any I/O or database operations so that maximum number of requests can be handled? --------------Solutions-----

  • Thread Synchronization - Maximum number of threads for a process 2011-09-12

    I was trying out a simple program with regard to thread synchronization using pthreads on a linux system. My program's source can be found at The program essentially has to print the number 1 to LIMIT (an arbitary number

  • Java virtual machine - maximum number of threads 2011-10-11

    What are the maximum number of threads which can be maintained by the java virtual machine? "I did not explain this in my orignial question, but I am trying to benchmark the JVM and would like to try and see how many threads it can concurrently maint

  • Determine maximum number of threads that run on different windows systems 2011-11-11

    Can anyone tell me if there is a way to find out the maximum number of threads that can run on different windows systems? For example - (Assumption)A windows 32-bit system can run maximum 4000 threads. --------------Solutions------------- I doubt the

  • Maximum number of threads per process - sysconf(_SC_THREAD_THREADS_MAX) failing 2012-03-05

    I'm trying to find the maximum number of threads per process on a UNIX machine and wrote the code below to use sysconf: #include <unistd.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> in

  • Set the maximum number of threads in the Threadpool less than cores 2011-03-16

    "You cannot set the number of worker threads or the number of I/O completion threads to a number smaller than the number of processors in the computer." (Threadpool.SetMaxThreads) What if I need to have less threads (I'm using a resource which does n

  • Is there a Thread Pool for Silverlight with a maximum number of threads? 2011-02-24

    I have created a renderer in Silverlight/C#. Currently I'm using System.Threading.ThreadPool to schedule rendering of tiles in parallel. This works well right now, but I would like to limit the number of threads used. Since this runs on Silverlight t

  • What is the maximum number of thread allowed to run on a web page 2013-01-29

    I have developed a page using ExtJS and ASP.NET. The page got multiple widgets. Each widget sends multiple AJAX request at the time of load. I assume each AJAX request runs over a new thread. I just want to understand: How many such threads are allow

  • Maximum (shared memory per block) / (threads per block) in CUDA with 100% MP load 2012-04-16

    I'm trying to process array of big structures with CUDA 2.0 (NVIDIA 590). I'd like to use shared memory for it. I've experimented with CUDA occupancy calculator, trying to allocate maximum shared memory per thread, so that each thread can process who

  • when spawning threads, how do I throttle the maximum number possible? 2011-07-29

    How do I spawn threads to the maximum number possible assuming that each thread may take different time to complete. The idea is to spawn the maximum number of threads possible while not causing any to die. E.g. While (spawnable) spawn more threads;

  • Whats the maximum number of swing worker threads that can be run 2011-12-02

    Is there an upper limit on the number of Swing Worker threads that can be run or is it like as far as the memory supports? Also is this configurable somewhere? --------------Solutions------------- A SwingWorker is not a thread itself but a task that

  • Optimal number of threads per core 2009-11-11

    Let's say I have a 4-core CPU, and I want to run some process in the minimum amount of time. The process is ideally parallelizable, so I can run chunks of it on an infinite number of threads and each thread takes the same amount of time. Since I have

  • CUDA determining threads per block, blocks per grid 2010-12-08

    I'm new to the CUDA paradigm. My question is in determining the number of threads per block, and blocks per grid. Does a bit of art and trial play into this? What I've found is that many examples have seemingly arbitrary number chosen for these thing

  • what number of threads to be created in thread pool 2011-10-19

    Currently i am in a process of developing a application which can work in a multi threaded mode. As part of testing on my local machine (Intel Core I5) i tested with 4 threads. But now want to release the code for intense(regression) testing, so ther

Copyright (C), All Rights Reserved.

processed in 0.865 (s). 13 q(s)