我们也会通过这个模式介绍现代GPU中的常数存储器(constant memory)和高速缓存(cache)。第9章介绍前缀和(prefix sum)或称为扫描(scan)的算法,该算法是串行计算转换到并行计算的一种重要模式。
基于20个网页-相关网页
...:这个存储器区域允许上下文中任何设备中所有工作组的所有工作项的读写,工作项可以读写存储器对象中的任意元素。全局存储器的读写可能会被缓存,这取决于设备能力。 常量存储器(constant memory):全局存储器中的一块区域,在内核实例执行期间其保存的数据保持不变。
基于12个网页-相关网页
OpenCL C提供了缓存global buer的内建函数。常量内存 (constant memory):工作空间内所有的工作节点可以只读此类内存中的任意元素。 host负责分配和初始化 constant buer,在内核执行过程中保持不变。
基于8个网页-相关网页
When I fall into the life cycle, the only constant memory is you.
当涐的生命陷入轮回里,唯一不变的记忆就是沵。
Do not allocate extra space for another array, you must do this in place with constant memory.
不要使用额外的空间来创建另一个数组,你必须在恒定的内存中做。
Constant practice has such an effect on memory as to lead to skillful performance on the piano, to recitation of a poem, and even to reading and understanding these words.
不断的练习对记忆有很大的影响,有助于熟练地弹奏钢琴,背诵诗歌,甚至阅读和理解这些单词。
Why not write the program in a way where you figure out dynamically when the program is run how much memory you need rather than hard coding in two with or within that constant.
为什么不写一个可以动态的方式写那个程序,程序可以动态分配内存,而不是用常量硬编码两个值。
应用推荐