sunce4t commented on issue #3102: URL: https://github.com/apache/brpc/issues/3102#issuecomment-3322972109
> 这是GPU内存的限制吗?在GPU内存上直接初始化,和在GPU内存直接修改这块内存的数据,应该是一回事。 是的,我们用的是cuMemAlloc这个API,这并不为CPU和GPU之间提供统一地址空间,因此直接访问就报错了;也可以使用cudaMallocManaged统一内存管理,或者cudaHostAlloc去进行映射。但都是有一定开销的。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
