beiwang2003
New Contributor
4 years agoinstall 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