设置最大CUDA资源 [英] Set max CUDA resources

查看:213
本文介绍了设置最大CUDA资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以设置CUDA应用程序的最大GPU资源?例如,如果我有一个4GB的GPU,但想要一个给定的应用程序只能够访问2GB它,如果尝试分配更多的失败。



要么在进程级别上设置,要么在CUDA上下文级别上设置。

解决方案

不,目前没有允许这种资源管理的API,进程或驱动程序控制。 >

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.

解决方案

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

这篇关于设置最大CUDA资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆