Intel® oneAPI Base Toolkit
Support for core tools and libraries to build and deploy high-performance data-centric applications
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

error cstdint

timochocolat
Beginner
740 Views

Hello,

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.

My machine:

Dual socket: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz

OS:

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

env gcc:

[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 ::

 error:

[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 ?

Thank you

++t

0 Kudos
1 Solution
GouthamK_Intel
Moderator
695 Views

Hi,

Could you please confirm whether we can close this thread from our end?


Regards

Goutham


View solution in original post

4 Replies
GouthamK_Intel
Moderator
703 Views

Hi Timothee,

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.

https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-system-requirements...

Let us know if this helps you.

Have a Good day!


Thanks & Regards

Goutham


timochocolat
Beginner
700 Views

Thank you for the answer. I will see what we can do with my devops. 

GouthamK_Intel
Moderator
696 Views

Hi,

Could you please confirm whether we can close this thread from our end?


Regards

Goutham


View solution in original post

GouthamK_Intel
Moderator
687 Views

Hi, 

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

Goutham


Reply