Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8303011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:25:26+00:00 2026-06-08T17:25:26+00:00

I am having trouble understanding the occupancy calculator. I am having trouble with some

  • 0

I am having trouble understanding the occupancy calculator. I am having trouble with some development code where 512 threads works fine, but 1024 threads gives crappy numbers.

I am running Tesla C2050 on windows 7, developing in Matlab (its not my fault i have to use Matlab) and Mexfunction.

I thought i would play around with the occupancy calculator to try to find any other restrictions on my code that was affecting the results.

When i enter 1024 threads per block, there is 0% occupancy. With 512 threads, the occupancy is 33%. I would have thought that i would get at least something with 1024 threads. I have noted that the code and the occupancy calculator gives good results for a maximum of 704 threads (This is a number that doesn’t represent anything real).

I believe my lack of understanding on this area is the reason i can not correct the error i am seeing in the code. Can anyone explain why i’m getting these results?

The numbers are:

  • compute capability 2.0
  • shared memory size 49152
  • threads per block 512 or 1024
  • registers per thread 44
  • shared memory per block 0

ptxas info : Used 44 registers, 232 bytes cmem[0], 144 bytes cmem[2], 28 bytes cmem[16]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:25:27+00:00Added an answer on June 8, 2026 at 5:25 pm

    The total number of registers you have per block is 32768 (you could check this with deviceQuery in the SDK).
    Now according to your kernel it uses 44 registers / thread. If you launch the kernel with 1024 thread per block you will get a total of 44*1024 = 45056 registers which is above the limit.
    In ordet to run it with 1024 thread per block you will need to optimize your kernel to use not more than 32 registers per thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble understanding some web part communication code, and how to make it
I'm having trouble understanding how QGraphicsItemAnimation's setScaleAt function works. Here's the code I'm using:
I'm having trouble understanding some basic memory management principles in C++. This code is
Having trouble understanding. With the following css : .bloc .field:nth-last-child(2){ ...some values... } and
I'm having trouble understanding why my code will not work asynchronously. When running asynchronously
Im having trouble understanding why the following code displays The First Key = (null)
I am having trouble understanding how escaping works inside html tag attribute values that
I am having trouble understanding this java code. I want the image to twinkle
I'm having trouble understanding some concepts. In the Unicode spec, there's a property called
I am having trouble understanding why my code is behaving as it does. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.