Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1033 Discussions

About QR Decomposition FPGA samples of devcloud

yyjpro
New Contributor I
273 Views

For the QR decomposition sample, I can not get the right result according to the guidance.  There are many errors that happened in the devcloud.

The directory is

oneAPI-samples/DirectProgramming/DPC++FPGA/ReferenceDesigns/qrd

And I use mkdir to get the build directory.

Then  use "cmake .. -DFPGA_BOARD=intel_s10sx_pac:pac_s10" to use FPGA D5005 PAC.

And I use "qsub -I -l nodes=1:fpga:ppn=2 -d ." to use this FPGA node. 

Then "make fpga_emu", but many error emerge.  

[ 33%] Building CXX object src/CMakeFiles/qrd.fpga_emu.dir/qrd_demo.cpp.o
In file included from /home/u77513/oneAPI-samples/DirectProgramming/DPC++FPGA/ReferenceDesigns/qrd/src/qrd_demo.cpp:32:
In file included from /glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_extensions.hpp:10:
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_device_selector.hpp:54:61: error: expected identifier or '{'
namespace __SYCL2020_DEPRECATED("use 'ext::intel' instead") INTEL {
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_device_selector.hpp:54:61: error: C++ requires a type specifier for all declarations
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_device_selector.hpp:55:3: error: expected expression
using namespace ext::intel;
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_device_selector.hpp:56:2: error: expected ';' after top level declarator
}
^
;
In file included from /home/u77513/oneAPI-samples/DirectProgramming/DPC++FPGA/ReferenceDesigns/qrd/src/qrd_demo.cpp:32:
In file included from /glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_extensions.hpp:11:
In file included from /glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_lsu.hpp:10:
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_utils.hpp:43:61: error: expected identifier or '{'
namespace __SYCL2020_DEPRECATED("use 'ext::intel' instead") INTEL {
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_utils.hpp:43:61: error: C++ requires a type specifier for all declarations
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_utils.hpp:44:3: error: expected expression
using namespace ext::intel;
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_utils.hpp:45:2: error: expected ';' after top level declarator
}
^
;
In file included from /home/u77513/oneAPI-samples/DirectProgramming/DPC++FPGA/ReferenceDesigns/qrd/src/qrd_demo.cpp:32:
In file included from /glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_extensions.hpp:11:
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_lsu.hpp:130:61: error: expected identifier or '{'
namespace __SYCL2020_DEPRECATED("use 'ext::intel' instead") INTEL {
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_lsu.hpp:130:61: error: C++ requires a type specifier for all declarations
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_lsu.hpp:131:3: error: expected expression
using namespace ext::intel;
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_lsu.hpp:132:2: error: expected ';' after top level declarator
}
^
;
In file included from /home/u77513/oneAPI-samples/DirectProgramming/DPC++FPGA/ReferenceDesigns/qrd/src/qrd_demo.cpp:32:
In file included from /glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_extensions.hpp:12:
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_reg.hpp:49:61: error: expected identifier or '{'
namespace __SYCL2020_DEPRECATED("use 'ext::intel' instead") INTEL {
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_reg.hpp:49:61: error: C++ requires a type specifier for all declarations
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_reg.hpp:50:3: error: expected expression
using namespace ext::intel;
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_reg.hpp:51:2: error: expected ';' after top level declarator
}
^
;
In file included from /home/u77513/oneAPI-samples/DirectProgramming/DPC++FPGA/ReferenceDesigns/qrd/src/qrd_demo.cpp:32:
In file included from /glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/fpga_extensions.hpp:13:
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/pipes.hpp:205:61: error: expected identifier or '{'
namespace __SYCL2020_DEPRECATED("use 'ext::intel' instead") INTEL {
^
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/pipes.hpp:205:61: error: C++ requires a type specifier for all declarations
/glob/development-tools/versions/oneapi/2021.4/inteloneapi/compiler/2021.4.0/linux/include/sycl/ext/intel/pipes.hpp:206:3: error: expected expression
using namespace ext::intel;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

src/CMakeFiles/qrd.fpga_emu.dir/build.make:62: recipe for target 'src/CMakeFiles/qrd.fpga_emu.dir/qrd_demo.cpp.o' failed
make[3]: *** [src/CMakeFiles/qrd.fpga_emu.dir/qrd_demo.cpp.o] Error 1
CMakeFiles/Makefile2:91: recipe for target 'src/CMakeFiles/qrd.fpga_emu.dir/all' failed
make[2]: *** [src/CMakeFiles/qrd.fpga_emu.dir/all] Error 2
CMakeFiles/Makefile2:135: recipe for target 'src/CMakeFiles/fpga_emu.dir/rule' failed
make[1]: *** [src/CMakeFiles/fpga_emu.dir/rule] Error 2
Makefile:131: recipe for target 'fpga_emu' failed
make: *** [fpga_emu] Error 2

 

So how to solve this problem?

0 Kudos
1 Reply
yyjpro
New Contributor I
271 Views
Reply