Forum Discussion
arnoecho
New Contributor
4 years agodevice policy "dpcpp_fpga" not found in namespace
I was trying to write a program which intends to utilize FPGA board. According to this page<https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-library-guide/top/parallel-api/e...
arnoecho
New Contributor
4 years ago#include <oneapi/dpl/algorithm> #include <oneapi/dpl/execution> #include <oneapi/dpl/iterator> #include <oneapi/dpl/async> #include <CL/sycl.hpp> #include <chrono> int main(int argc, char *argv[]) { using namespace oneapi; { auto policy = oneapi::dpl::execution::dpcpp_fpga; ... //dpl apis that use the variable <policy> ... } return 0; }
Something like this. And when I compile it with
dpcpp -fintelfpga <src> -DFPGA_EMULATOR=1
The compiler reports the following error
error: no member named 'dpcpp_fpga' in namespace 'oneapi::dpl::execution'