P. 1
NVIDIA CUDA C Programming Guide 3.1

NVIDIA CUDA C Programming Guide 3.1

|Views: 738|Likes:
Published by 邱吉震

More info:

Published by: 邱吉震 on Sep 08, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/24/2012

pdf

text

original

8-bit and 16-bit accesses typically generate bank conflicts. For example, there are
bank conflicts if an array of char is accessed the following way:

__shared__ char shared[32];
char data = shared[BaseIndex + tid];

Appendix G. Compute Capabilities

154

CUDA C Programming Guide Version 3.1.1

because shared[0], shared[1], shared[2], and shared[3], for example,
belong to the same bank. There are no bank conflicts however, if the same array is
accessed the following way:

char data = shared[BaseIndex + 4 * tid];

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->