Opencl AMD GPU仅在登录时可用

Opencl AMD GPU仅在登录时可用,opencl,gpu,gpgpu,pyopencl,Opencl,Gpu,Gpgpu,Pyopencl,我在Linux上运行AMD Radeon GPU,并安装了AMD SDK for OpenCL(最新版本) 现在,当我没有通过GDM登录时(当主X服务器没有运行时),没有AMD GPU可用,所以所有的计算都将由CPU完成。 当我通过GDM登录(主x服务器正在运行)时,当我使用python中的以下程序列出GPU时,会显示GPU(仅显示核心部分): 我的问题是,在不运行X服务器(fglrx)的情况下是否可以使用AMD GPU?有办法吗 John请参阅如何在远程登录时访问X服务器。请参阅如何在远程登录

我在Linux上运行AMD Radeon GPU,并安装了AMD SDK for OpenCL(最新版本)

现在,当我没有通过GDM登录时(当主X服务器没有运行时),没有AMD GPU可用,所以所有的计算都将由CPU完成。 当我通过GDM登录(主x服务器正在运行)时,当我使用python中的以下程序列出GPU时,会显示GPU(仅显示核心部分):

我的问题是,在不运行X服务器(fglrx)的情况下是否可以使用AMD GPU?有办法吗

John

请参阅如何在远程登录时访问X服务器。

请参阅如何在远程登录时访问X服务器

for platform in cl.get_platforms():
    for device in platform.get_devices():
        print("===============================================================")
        print("Platform name:", platform.name)
        print("Platform profile:", platform.profile)
        print("Platform vendor:", platform.vendor)
        print("Platform version:", platform.version)
        print("---------------------------------------------------------------")
        print("Device name:", device.name)
        print("Device type:", cl.device_type.to_string(device.type))
        print("Device memory: ", device.global_mem_size//1024//1024, 'MB')
        print("Device max clock speed:", device.max_clock_frequency, 'MHz')
        print("Device compute units:", device.max_compute_units)