Set max CUDA resources

被刻印的时光 ゝ 提交于 2019-12-04 05:51:27

问题


I am wondering if it is possible to set the max GPU resources of a CUDA application? For example If I had a 4GB GPU but wanted a given application to only be able to access 2GB of it, and fail if it tries to allocate more.

Ideally this could either be set on a process level or on a CUDA context level.


回答1:


No, there are no API, process, or driver controls which allow that kind of resource management at present.



来源:https://stackoverflow.com/questions/38427369/set-max-cuda-resources

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!