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 8916065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:08:21+00:00 2026-06-15T05:08:21+00:00

Device GeForce GTX 680 In the program, i have very long array to be

  • 0

Device GeForce GTX 680

In the program, i have very long array to be processed inside kernel.(Approx 1 GB of integers).As per need,My array is divided into blocks sequentially with some overlap(overlap between blocks is k). I have fixed size of each block(block size is m) .Now, array will be divided in order (0,m) (m-k, (m-k) +m) ,….)

As per above calculation, no of blocks needed in my program will be approximately (1GB / m)
Since total number of blocks is limited in GPU, how can i effectively do it?.
Should i call kernel in iterative manner from host without any loops inside kernel??
or should i call kernel once and then loop inside kernel for multiple iterations?
or should i call kernel only once with total no of blocks = (1 GB /m) ??

What can be put as best value for number of blocks for this program and what methods?

  • 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-15T05:08:22+00:00Added an answer on June 15, 2026 at 5:08 am

    I would suggest the following sequence for the first version of your app:

    Init:

    • allocate room on the GPU for two non-overlapping blocks of the array on the GPU (slot 1 and 2)
    • copy the first non-overlapping block to slot 1

    Loop:

    • copy the next non-overlapping block to slot 2
    • run a kernel that runs on slot 1 and partially into slot 2
    • copy contents of slot 2 to slot 1 (GPU to GPU memory copy)

    In a later version, you can avoid the GPU to GPU copy by copying alternately into slot 1 and slot 2 and wrapping the addressing around in the kernel so that instead of overflowing slot 2, it starts at the beginning of slot 1. Think of it as slot 1 and slot 2 being arranged into a ring buffer. You can also improve performance by adding more slots and asynchronously copying blocks of the array to new slots while the kernel is running on previous slots.

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

Sidebar

Related Questions

Device GeForce GTX 680 In my program,value is copied from host to device variable
I'm using a GeForce GTX 580 (compute capability 2.0). In my program i'm suspecting
I have two tasks. Each of them perform copy to device (D), run kernel
I am using Compute Prof 3.2 and a Geforce GTX 280. I have compute
I have an embedded device where i need to put my /var and /tmp
I have android device its samsung galaxy GT-S5300 and version is 2.3.6 . I
I have something very similar to the code: int k, no_streams = 4; cudaStream_t
I have a device with 800x480 res. When I create GLSurfaceView, I get an
My device configuration is large-mdpi. But in my app, i have the images only
Emulator --- Device Hey people. I'm not very experienced in Android development, so I

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.