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

  • Home
  • SEARCH
  • 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 7886439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:19:05+00:00 2026-06-03T05:19:05+00:00

what is better? I need to process data in several steps and it appears

  • 0

what is better? I need to process data in several steps and it appears to me that I’ve 2 options:
1) use one big kernel
2) use streams with one kernel for each step

There is some latency before a kernel is executed, but does it really matter in this case? Is latency for a big kernel same as sum of latencies for several smaller kernels?

Are there any advantages one way compared to the other one?

Thanks guys.

  • 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-03T05:19:07+00:00Added an answer on June 3, 2026 at 5:19 am

    Launch latency for a kernel on a Fermi card is on the order of 10us, so nothing to worry about. It makes sense — to render a scene in a game, one has to run many different shaders (which are kernels).

    A kernel has to read the data that it will process from global memory and write the results back to global memory. So each separate kernel implies that full read/write cycle. You may be able to speed things up if you are able to chain multiple steps together in a big kernel, still bracketed by a single read/write cycle.

    As an example, if you need to perform operations A, B and C, chaining them might give you READ – A – B – C – WRITE while separate kernels would give you READ – A – WRITE – READ – B – WRITE – READ – C – WRITE.

    Remember, even if you run even a single kernel, you can still keep your code readable by breaking the separate steps out to separate device functions.

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

Sidebar

Related Questions

I have large data files stored in S3 that I need to analyze. Each
Which approach is better to use if I need a member (sp or func)
I have two basic interface-related concepts that I need to have a better understanding
I need to pull several rows from a table and process them in two
I need to process a large number of records (several million) representing people. I
I need to handle 3D cube data. Its number of elements can be several
I have a main thread which should process data coming from several worker threads.
Scenario: Data is received and written to database with timestamps. I need to process
I have a lot of data in a database(PostgreSQL) and need to process all.
I need to call some Javascript that grabs data from the Twitter API on

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.