ContributionsMost RecentMost LikesSolutionsRe: install oneAPI on RHEL OS with D5050 card Hi, BB, Yes, -gcc-toolchain was specified in the compiling process, but it didn't seem to work. We figured out that oneAPI add-on was not properly installed. We are now working on a fresh installation and will keep you posted for the result. Thanks for the follow up. Bei Re: install oneAPI on RHEL OS with D5050 card Hi, BoonBengT_Intel, Thanks for the suggestion. Here is the version numbers for gcc and cmake. $ gcc --version gcc (GCC) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cc --version cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cmake --version cmake version 3.4.0 CMake suite maintained and supported by Kitware (kitware.com/cmake). The compiling process seems pick up the cc compiler which points to GNU 4.8.5 instead of gcc compiler which points to GNU 7.4.0. Thanks Bei install oneAPI on RHEL OS with D5050 card We have a D5050 card with Springdale Linux 7.9, a custom red-hat based distribution. We then follow the instruction here to install the required packages for oneAPI. However, we had the following error message in compiling oneAPI sample code. Can you please advise? These are what we did. 1. downloaded the oneAPI sample code 2021.3.0 here at: https://github.com/oneapi-src/oneAPI-samples/releases/tag/2021.3.0 2. "source /opt/intel/oneapi/setvars.sh” 3. "mkdir build” under ../oneAPI-samples-2021.3.0/DirectProgramming/DPC++/NBodyMethods/Nbody directory 4. “cd build" 5. "cmake ../. -DFPGA_BOARD=intel_s10sx_pac:pac_s10 -DCMAKE_CXX_FLAGS=--gcc-toolchain=/usr/local” -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is Clang 13.0.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /opt/intel/oneapi/compiler/2021.3.0/linux/bin/dpcpp -- Check for working CXX compiler: /opt/intel/oneapi/compiler/2021.3.0/linux/bin/dpcpp -- broken CMake Error at /usr/local/share/cmake-3.4/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "/opt/intel/oneapi/compiler/2021.3.0/linux/bin/dpcpp" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/beiwang/oneAPI-samples-2021.3.0/DirectProgramming/DPC++/N-BodyMethods/Nbody/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_78e3a/fast" /usr/bin/gmake -f CMakeFiles/cmTC_78e3a.dir/build.make CMakeFiles/cmTC_78e3a.dir/build gmake[1]: Entering directory `/home/beiwang/oneAPI-samples-2021.3.0/DirectProgramming/DPC++/N-BodyMethods/Nbody/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_78e3a.dir/testCXXCompiler.cxx.o /opt/intel/oneapi/compiler/2021.3.0/linux/bin/dpcpp --gcc-toolchain=/usr/local -o CMakeFiles/cmTC_78e3a.dir/testCXXCompiler.cxx.o -c /home/beiwang/oneAPI-samples-2021.3.0/DirectProgramming/DPC++/N-BodyMethods/Nbody/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTC_78e3a /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_78e3a.dir/link.txt --verbose=1 /opt/intel/oneapi/compiler/2021.3.0/linux/bin/dpcpp --gcc-toolchain=/usr/local CMakeFiles/cmTC_78e3a.dir/testCXXCompiler.cxx.o -o cmTC_78e3a -rdynamic /usr/bin/ld: cannot find crtbegin.o: No such file or directory /usr/bin/ld: cannot find -lgcc dpcpp: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [cmTC_78e3a] Error 1 gmake[1]: Leaving directory `/home/beiwang/oneAPI-samples-2021.3.0/DirectProgramming/DPC++/N-BodyMethods/Nbody/build/CMakeFiles/CMakeTmp' gmake: *** [cmTC_78e3a/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:15 (project) -- Configuring incomplete, errors occurred! See also "/home/beiwang/oneAPI-samples-2021.3.0/DirectProgramming/DPC++/N-BodyMethods/Nbody/build/CMakeFiles/CMakeOutput.log". See also "/home/beiwang/oneAPI-samples-2021.3.0/DirectProgramming/DPC++/N-BodyMethods/Nbody/build/CMakeFiles/CMakeError.log”. Thanks Bei Re: Compiling error: Couldn't open *.bc.xml for read! The error is gone by switching to SDK 20.1. The earlier error came with the using of SDK 19.2. Re: Compiling error: Couldn't open *.bc.xml for read! Now I am able to compile it successfully w/o the -o option. Here are the steps I followed: 1. aoc -c kernel1.cl kernel2.cl 2. aoc -rtl kernel1.cl kernel2.cl 3. aoc kernel2.aocr It seems that -o option in the second step only renames the directory, but not the required file names within it (e.g., *.bc.xml etc). Now the question is how to use the -o option correctly for aoc -rtl so that both directory and file names are renamed? Thanks Compiling error: Couldn't open *.bc.xml for read! I was trying to compile multiple kernel files. Here are the steps I followed: 1. aoc -c kernel1.cl kernel2.cl 2. aoc -rtl -o allKernels.aocr kernel1.aoco kernel2.aoco 3. aoc allKernels.aocr The first 2 steps were successfully. The compiling for the third step takes a long time, but returned the following error message at the end: Error: Coundn't open allKernels.bc.xml for read! In the allKernels folder generated from the second step, I could see kerenl2.bc.xml file, but not allKernels.bc.xml. My feeling is the way I compile multiple kernel files in a single *.aocx file as above might not be correct. I am using Quartus 19.2. Can you please advise? Thanks error in generating profile.json file I tried to generate profile.json file for Intel VTune, but had the following error message. Can you how can I fix it? Thanks! $ aocl profile ./strip-cluster -x allKernels.aocx -s allKernels.source aocl Error: The execution failed with an error. aocl Returned status: 65280 parallel prefix sum OpenCL implementation I am wondering if anyone knows an efficient parallel prefix sum OpenCL implementation for FPGA. I am currently using the one at CLPP , but it is extremely slow. I guess it makes sense since it was developed earlier for GPU. Anyone knows an open source parallel prefix sum optimized for FPGA? Thanks Re: Error in using emulator mode with SDK 20.1 for hello_world example Hi, Anil, I've tried this by replacing the current Altera.icd file at /etc/OpenCL/vendors/ with the one at .../19.4/hld/Altera.icd. It is still the same error message during running:Context callback: Malformed program binary: missing .acl.board section Thanks Bei error in compiling with -fast-compile option on pac_s10_dc I am compiling the vector_add.cl example on board pac_s10_dc. However, I've received the following error message: Error: Could not open afu_opencl_kernel.fit.rpt for reading. This is similar to the earlier post at https://community.intel.com/t5/Application-Acceleration-With/The-option-of-aoc-17-1-1-quot-fast-compile-quot-cannot-work-well/td-p/650134 I am wondering if -fast-compile option is not supported on pac_s10_dc board. Here is my compiling env export QUARTUS_HOME=/opt/intelFPGA_pro/quartus_19.2.0b57/quartus export OPAE_PLATFORM_ROOT=/opt/intel/fpga-d5005/inteldevstack/d5005_ias_2_0_1_b237 export AOCL_BOARD_PACKAGE_ROOT=/opt/intel/fpga-d5005/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp $OPAE_PLATFORM_ROOT/bin is in PATH already export INTELFPGAOCLSDKROOT=/opt/intelFPGA_pro/quartus_19.2.0b57/hld export ALTERAOCLSDKROOT=/opt/intelFPGA_pro/quartus_19.2.0b57/hld $QUARTUS_HOME/bin is in PATH already source /opt/intelFPGA_pro/quartus_19.2.0b57/hld/init_opencl.sh