hughperkins / DeepCL

OpenCL library to train deep convolutional neural networks
Mozilla Public License 2.0
865 stars 199 forks source link

DeepCL fpr Altera FPGA #98

Closed mohmsslk closed 7 years ago

mohmsslk commented 7 years ago

Hello,

I want to install DeepCL for Altera FPGA, I installed OpenCL SDK for Altera but when I run "deepcl_unittests" it can't detacte it, even my GPU AMD, it just detecte my CPU intel, any idea how to install DeepCL for Altera FPGA? I'm using windows.

marty1885 commented 7 years ago

As what I come to know (At least this is what happens in my lab). Altera OpenCL SDK seems to not support OpenCL ICD. Which is required for multiple platform to co-exist. By default, OpenCL finds platforms that support ICD. Since Altera's SDK don't support ICD. The default OpenCL library won't find it. You need to directly link your executable against Altera OpenCL SDK's OpenCL.dll to use the FPGA as a OpenCL device.

Update: Altera's new SDK do support OpenCL ICD. But it's only supported after v16.0. Please check the SDK version you are using.

viper7882 commented 7 years ago

Hi @marty1885 ,

According to the latest Intel® FPGA SDK for OpenCL Programming Guide, The Intel FPGA SDK for OpenCL supports the OpenCL ICD extension from the Khronos Group.

Chances are you will have to install Quartus v17.0 to enable OpenCL ICD in Intel FPGA.