doonny / PipeCNN

An OpenCL-based FPGA Accelerator for Convolutional Neural Networks
Apache License 2.0
1.22k stars 370 forks source link

error: Channel support is not enabled #34

Closed LCF2016 closed 6 years ago

LCF2016 commented 6 years ago

Hi,I compiled project with Intel OpenCL SDK for FPGA 17.1 and get the following error In file included from /home/wangjf/PipeCNN/project/all_sources.cl:2: PipeCNN/project/device/conv_pipe.cl:75:24: error: Channel support is not enabled channel channel_vec data_ch attribute__((depth(0)));

Anyone got an idea? Thanks in advance!!

LCF2016 commented 6 years ago

I changed OPENCL_EXTENSION to OPEN EXTENSION which can solve the above problem. thanks!

bagumondigi commented 6 years ago

I have solved the problem by following this thread in Altera forum: https://www.alteraforum.com/forum/showthread.php?t=57424 in conv_pipe.cl change to: #pragma OPENCL EXTENSION cl_intel_channels : enable

lihao2333 commented 6 years ago

for aoc with version 17.1, you should do two thing in conv_pipe.cl

  1. change OPENCL_EXTENSION to OPENCL EXTENSION
  2. replace all altera into intel in this file