sorting out OpenCL platforms on linux
Posted: Tue Jun 16, 2020 7:59 pm
hi all -
i managed to add an RX5500 to my ubuntu 18.04 linux box (which had previously only had an nvidia GTX 1060) with the help of this thread: viewtopic.php?f=81&t=33353
in the course of things i have ended up with 3 OpenCL platforms. 0 seems to be Clover/Mesa due to having installed mesa-opencl-icd, 1 seems to be AMD Accelerated Parallel Processing and 2 seems to be NVIDA CUDA, if the order presented in clinfo is 0..2.
when FAHClient starts up on the RX5500, it seems to be selecting platform 0. this may be OK, but Clover is openCL 1.1 while the AMD platform is openCL 2.1. assuming there is some advantage to running under openCL 2.1, is there a way to tell FAHClient to use platform 1 for the RX5500 card? seems like my PPD is a little under what this spreadsheet says (https://docs.google.com/spreadsheets/d/ ... edit#gid=0) and i wonder if that's due to the Clover driver.
or would removing the mesa-opencl-icd just fix this?
also as i posted in the above thread, despite the OpenCL devices being found OK after adding user fahclient to group video and changing how the service is started, when the indices are set to -1 in the FAHClient config, neither client will start. i've had to set both slots to 0 and 0 for opencl-index and cuda-index respectively. is this to be expected?
thanks
i managed to add an RX5500 to my ubuntu 18.04 linux box (which had previously only had an nvidia GTX 1060) with the help of this thread: viewtopic.php?f=81&t=33353
in the course of things i have ended up with 3 OpenCL platforms. 0 seems to be Clover/Mesa due to having installed mesa-opencl-icd, 1 seems to be AMD Accelerated Parallel Processing and 2 seems to be NVIDA CUDA, if the order presented in clinfo is 0..2.
when FAHClient starts up on the RX5500, it seems to be selecting platform 0. this may be OK, but Clover is openCL 1.1 while the AMD platform is openCL 2.1. assuming there is some advantage to running under openCL 2.1, is there a way to tell FAHClient to use platform 1 for the RX5500 card? seems like my PPD is a little under what this spreadsheet says (https://docs.google.com/spreadsheets/d/ ... edit#gid=0) and i wonder if that's due to the Clover driver.
or would removing the mesa-opencl-icd just fix this?
also as i posted in the above thread, despite the OpenCL devices being found OK after adding user fahclient to group video and changing how the service is started, when the indices are set to -1 in the FAHClient config, neither client will start. i've had to set both slots to 0 and 0 for opencl-index and cuda-index respectively. is this to be expected?
thanks