What is the differences between registers and private memory in openCL.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Physically, registers are on-chip and thus close to the cores. Private memory is apportioned from the DRAM, which is pretty far from the core. By close and far, we are referring to latency here. A read from register might take 1-10 clock cycles, while a read from DRAM might take 200-400 clock cycles.
Also, as a programmer you cannot really address a particular register (unless you do assembly programming). What registers will be used to execute your kernel is decided by the compiler or the processor at runtime. But, you can address specific location of private memory as needed.