src/gpu-compute/gpu_render_driver.cc
/* ROCm 4 utilizes the render driver located at /dev/dri/renderDXXX. This
 * patch implements a very simple driver that just returns a file
 * descriptor when opened.
 */
ROCm 4 utilizes the render driver located at /dev/dri/renderDXXX. This
patch implements a very simple driver that just returns a file
descriptor when opened.
ROCm 4 utilizes the render driver located at / dev / dri / renderDXXX . This patch implements a very simple driver that just returns a file descriptor when opened .
int
GPURenderDriver::open(ThreadContext *tc, int mode, int flags)
{
    auto process = tc->getProcessPtr();
    auto device_fd_entry = std::make_shared<DeviceFDEntry>(this, filename);
    int tgt_fd = process->fds->allocFD(device_fd_entry);
    return tgt_fd;
}
int GPURenderDriver :: open ( ThreadContext * tc , int mode , int flags ) { auto process = tc -> getProcessPtr ( ) ; auto device_fd_entry = std :: make_shared < DeviceFDEntry > ( this , filename ) ; int tgt_fd = process -> fds -> allocFD ( device_fd_entry ) ; return tgt_fd ; }
ROCm 4 utilizes the render driver located at /dev/dri/renderDXXX.
ROCm 4 utilizes the render driver located at / dev / dri / renderDXXX .