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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:46:03+00:00 2026-05-28T01:46:03+00:00

I want to fill the global memory with as much data as possible, and

  • 0

I want to fill the global memory with as much data as possible, and I know each data I have is a value between 0 and 255. So I was thinking that instead of using an int type I could store their value in a short, or even better in a char, and access and compute the values on the device using the same type.

However, will this affect performance on a Tesla architecture? And will the copy from global to shared memory be coalesced?

Any ideas? Thanks!

  • 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-05-28T01:46:03+00:00Added an answer on May 28, 2026 at 1:46 am

    The best strategy for optimising bandwidth utilization for 8 or 16 bit types will depend on the access patterns of the memory within a warp. If any given warp will read in a highly scattered fashion, then using byte sizes types and forcing 32 bit transaction sizes per warp might be an advantage, because the standard transaction sizes will waste a lot of the achieved bandwidth. But if the access patterns within a warp are going to hit contiguous or near-contiguous segments of memory, then the best strategy will probably be to use uchar4 or ushort2 and aim to achieve throughput using coalesced 32 bit reads per thread from global memory to a shared memory array and have all the threads in a block read from that. It might also be worth evaluating the performance of a texture for loads if the per warp accesses contain scatter.

    This pdf contains a lot of useful information about memory performance optimisation on Fermi. I would encourage you to spend some time reading it. Benchmarking is really the only way of evaluating the best approach for a given application, and that document has some excellent tips on how to understand the memory performance of a given piece of code.

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

Sidebar

Related Questions

I have a for loop. Inside that loop I want to fill up an
Okay all, I have a form that I want users to fill out. When
I have a global variable int[] and I want to clear its data and
I want to fill a polygon shape that I have drawn via Core Graphics
I want to fill my ListView with data that's going to come from the
I want to fill a table with data that might be overlapping. I do
I want to fill an array in javascript that takes all the values out
I Had Drop down list and I want to fill it with data from
Let's say I have a split view, and I want to fill half of
i want to fill a combobox with data from the database when the page

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.