0

I'd like to know if the configuration of constant memory changes as the underlying architecture evolves from Kepler to Volta. To be specific, I have two questions:

1) Does the sizes of constant memory and per-SM constant cache change?

2) What's the mapping from the cmem space to constant memory?

When compiling cuda code to PTX with adding '-v' to nvcc, we can see the memory usage like: ptxas info : Used 20 registers, 80 bytes cmem[0], 348 bytes cmem[2]. So does the cmem space maps to constant memory? Does accessing to each cmem space go through the on-chip constant cache?

1 Answer 1

1

I have found the answer for the 1st question. In the CUDA C Programming Guide, table14 shows the size of constant memory and constant cache for different CCs. The constant memory size is always 64KB from CC2.x to 6.x. The on-chip constant cache size is 8KB till CC 3.0 and increases to 10KB for the later.

Sign up to request clarification or add additional context in comments.

2 Comments

Please add the relevant information here, not just the link.
@AnderBiguri Sorry for that. I have added the relevant information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.