ALLOC

linux dma_alloc_coherent cache一致性问题

1. 问题背景 想提升vpu编解码帧率,在vpu的设备树节点添加dma-coherent属性,vpu编解码timeout(失败); 2. 所做尝试 2.1 vpu内存分配接口 b->virt = dma_alloc_coherent(dev, PAGE_ALIGN(size), &b->dma, G ......

SAM推理时总是提示PYTORCH_CUDA_ALLOC_CONF相关错误

相关错误如下: RuntimeError: CUDA out of memory. Tried to allocate 6.18 GiB (GPU 0; 24.00 GiB total capacity; 11.39 GiB already allocated; 3.43 GiB free; 17. ......

golang: 模仿 VictoriaMetrics 中的做法,通过把局部变量放在自定义 Context 对象中来做到hot path 的 0 alloc

**作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢!** * [cnblogs博客](https://www.cnblogs.com/ahfuzhang/) * [zhihu](https://www.zhihu.com/people/ahfuzhang/posts) * [G ......
VictoriaMetrics 变量 局部 做法 对象

使用alloc_chrdev_region/register_chrdev_region/cdev注册字符设备和使用class在驱动加载时自动创建设备节点

使用新版本字符设备驱动函数(register_chrdev_region)编写字符驱动和在驱动模块加载的同时创建设备节点;结合了IMX6ULL阿尔法开发板,编写了LED驱动模块。 ......
共4篇  :1/1页 首页上一页1下一页尾页