I have to evaluate oneAPI for my company. I am not able to compile a simple example from the SDK: simple-add-buffers. I am just trying to run on CPU now.
Dual socket: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
[nix-shell:~/dpcpp/simple_add]$ gcc --version gcc (GCC) 9.3.0 Copyright (C) 2019 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.
set up env:
[nix-shell:~/dpcpp/simple_add]$ . /opt/intel/oneapi/setvars.sh --force :: initializing oneAPI environment ... BASH version = 4.4.23(1)-release :: mpi -- latest :: dpl -- latest :: tbb -- latest :: compiler -- latest :: mkl -- latest :: ccl -- latest :: dal -- latest :: dpcpp-ct -- latest :: ippcp -- latest :: dev-utilities -- latest :: ipp -- latest :: advisor -- latest :: itac -- latest :: inspector -- latest :: vpl -- latest :: clck -- latest :: vtune -- latest :: dnnl -- latest :: debugger -- latest :: oneAPI environment initialized ::
[nix-shell:~/dpcpp/simple_add]$ make build_buffers dpcpp -O2 -g -std=c++17 -o simple-add-buffers src/simple-add-buffers.cpp In file included from src/simple-add-buffers.cpp:22: In file included from /opt/intel/oneapi/compiler/2021.1.2/linux/bin/../include/sycl/CL/sycl.hpp:11: In file included from /opt/intel/oneapi/compiler/2021.1.2/linux/bin/../include/sycl/CL/sycl/ONEAPI/atomic.hpp:11: In file included from /opt/intel/oneapi/compiler/2021.1.2/linux/bin/../include/sycl/CL/sycl/ONEAPI/atomic_accessor.hpp:11: In file included from /opt/intel/oneapi/compiler/2021.1.2/linux/bin/../include/sycl/CL/sycl/ONEAPI/atomic_enums.hpp:11: In file included from /opt/intel/oneapi/compiler/2021.1.2/linux/bin/../include/sycl/CL/__spirv/spirv_ops.hpp:10: /opt/intel/oneapi/compiler/2021.1.2/linux/bin/../include/sycl/CL/__spirv/spirv_types.hpp:11:10: fatal error: 'cstdint' file not found #include <cstdint>
my two cents, dpcpp is trying using the libc of the system (GCC 4.8.5). Any suggestions ?
Thanks for reaching out to us!
It looks like you are using DPCPP Compiler in OS(CentOS 7) which is not supported.
Please refer to the below link for System Requirements for Intel® oneAPI DPC++/C++ Compiler.
Let us know if this helps you.
Have a Good day!
Thanks & Regards
Thanks for the confirmation!
As this issue has been resolved, we will no longer respond to this thread.
If you require any additional assistance from Intel, please start a new thread.
Any further interaction in this thread will be considered community only.
Have a Good day.
Thanks & Regards