简体   繁体   English

有没有比制作驱动程序更简单的方法来完成这个实验?

[英]Is there any easier way, than making a driver, for achieving this experiment?

Am I overcomplicating things, or is this actually the easiest way of doing this?我是不是把事情搞得太复杂了,或者这实际上是最简单的方法吗?

I need a piece of software, that would allow me to force any given process on a system to use a specific GPU. The software should be able to force the process to switch GPU mid-execution (yes, I know this will cause a lot of issues, it's part some experiments I'm doing, to hopefully do something smart) (Linux btw)我需要一个软件,它允许我强制系统上的任何给定进程使用特定的 GPU。该软件应该能够强制进程在执行中切换 GPU(是的,我知道这会导致很多的问题,这是我正在做的一些实验的一部分,希望能做一些聪明的事情)(Linux btw)

Would it be correct to make a 'dummy driver' that allowed processes to use it as GPU, and then it could redirect the graphical processing to whatever GPU I wanted, or am I overcomplicating things?制作一个允许进程将其用作 GPU 的“虚拟驱动程序”是否正确,然后它可以将图形处理重定向到我想要的任何 GPU,或者我是否使事情过于复杂? Is there an easier way to do this?有没有更简单的方法来做到这一点? Cause I kinda don't want to make a driver, but I can't really see any way around it.因为我有点不想做司机,但我真的看不出有什么办法。

I my view your actually undercomplicating the issue.我认为您实际上没有使问题复杂化。 A GPU is a highly specific device designed to do a gpu`s work like transforming patterns for geometric problems. GPU 是一种高度特定的设备,旨在完成 gpu 的工作,例如为几何问题转换模式。 It is far from a general purpose cpu.它远非通用cpu。 Yes, it is a cpu but with alot of specific instruction sets tobe utilized.是的,它是一个 CPU,但有很多特定的指令集可供使用。

So i guess the answer to your question is yes, you can make such a program.所以我想你的问题的答案是肯定的,你可以制作这样的程序。 A good hint is to get familiar with specifications like opengl or similar, in order to understand if and how your problem/programm can be made fit for such a engine and give you any advantage.一个很好的提示是熟悉 opengl 或类似规范,以便了解您的问题/程序是否以及如何适合这样的引擎并为您带来任何优势。 Then you might have a path via Linux kms drivers combined with a wayland based application to interact with your gpu(s).然后你可能有一条路径通过 Linux kms 驱动程序结合基于 wayland 的应用程序来与你的 gpu 交互。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有更简单的方法来实现点云库? - Is there an easier way to implement Point Cloud Library? 在用户空间中编写文件系统驱动程序比在内核空间中编写更容易吗? - Is it easier to write filesystem drivers in userspace than in kernel space? SSH 的更简单方法是防止同时输入主机名和用户名? - Easier way to SSH to prevent typing both hostname and username? 有没有办法在基于 Linux 的 SMBus 接口上读/写超过 32 个字节? - Is there any way to read/write more than 32 bytes on Linux based SMBus interface? 在Linux系统上,除了使用“cgroups”之外还有什么方法可以限制运行进程的内存使用量吗? - On Linux system, Other than using “cgroups” is there any way to limit running process' memory usage? 除了使用“<”运算符或“|”之外,有什么方法可以将文本文件传递给 sendmail 命令(在 linux 中) 操作员 - Is there any way we can pass a text file to sendmail command (in linux) other than using '<' operator or '|' operator 有什么方法可以确保不超过 x 个 HTTP 请求发送到 Linux 中的某个站点? - Any way to ensure that no more than x HTTP requests are sent to a certain site in Linux? 是否已加载操作系统级别的任何闪存驱动程序? - Is there any flash driver at the OS level loaded? 将数据从内核驱动程序复制到用户空间驱动程序的最佳方法 - Best Way to copy data from Kernel Driver to user space driver 在现代 Linux(即 ver&gt;=3.0.0)上,是否有更简单的方法在不相关的进程之间共享文件描述符? - Is there an easier way to share file descriptors between unrelated processes on modern day Linux (i.e., ver>=3.0.0)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM