Linux で AMD Radeon GPU を実行しており、AMD SDK for OpenCL (最新バージョン) がインストールされています。
現在、GDM 経由でログインしていないとき (メインの X サーバーが実行されていないとき)、利用可能な AMD GPU がないため、すべての計算は CPU によって行われます。GDM 経由でログインしている場合 (メインの x サーバーが実行されている場合)、Python で次のプログラムを使用して GPU を一覧表示すると、GPU が表示されます (コア部分のみが表示されます)。
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)
私の質問は、X サーバー (fglrx) を実行せずに AMD GPU を使用できるかどうかです。それを行う方法はありますか?
ジョン