Forum Discussion
SVM(shared virtual memory) available on OpenCL FPGA?
- 3 years ago
My bad, HARPv2 is "Xeon CPU+arria10 FPGA" on a single chip. it seems SVM functionality is not yet there on Intel FPGAs on devcloud, as Intel is still stuck at OpenCL 1.0 or 1.2 and not fully confronted to OpenCL 2 or 3, Makes sense as intel shifted to OneAPI leaving OpenCL.
I am not asking particularly about that project, What i am asking is whether SVM is supported on intel FPGA.
For example, Consider this one (vector addition) which is from INTEL, just download the source code and try to execute it.
Add this below at the beginning of the main.cpp file to use SVM and compile using make
#define USE_SVM_API 1
cd exm_opencl_vector_add_x64_linux/vector_add/ make
Similarly compile for device (using pac_a10 device on devcloud).
cd exm_opencl_vector_add_x64_linux/vector_add/device tools_setup -t A10DS aoc -report -v ./vector_add.cl
Now since its compiled (vector_add.aocx generated), sign it if necessary.
Run bin/host, and output says SVM is not supported.
Initializing OpenCL Platform: Intel(R) FPGA SDK for OpenCL(TM) Using 1 device(s) pac_a10 : Intel PAC Platform (pac_ee00000) Using AOCX: vector_add.aocx The host was compiled with USE_SVM_API, however the device currently being targeted does not support SVM. Segmentation fault (core dumped)
I just want to get confirmation if SVM support is there for intel FPGA's, because even in some official Intel OpenCL FPGA examples i have seen SVM usage,
But here when queried for svm capabilties or even using clinfo, we get to know device not supported.