Intel® oneAPI Base Toolkit
Support for core tools and libraries to build and deploy high-performance data-centric applications
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
347 Discussions

'cstdint' file not found while make matrix_mul sample

Matrix
Employee
1,331 Views

Hi,

As title. 

OS: CentOS 8.2

One API version: 2021.1.1.

 

Is it a header file search folder setting issue, because I can see some stdint.h files in /opt/intel/oneapi folder. If yes, how to set this for dpcpp compiler?

 

Thx in advance.

 

Add on 2021/01/29:

The log is as below, seems spirv header cannot find cstdint.

[root@localhost matrix_mul]# make all
dpcpp -std=c++17 -g -o matrix_mul_dpc src/matrix_mul_dpcpp.cpp
In file included from src/matrix_mul_dpcpp.cpp:17:
In file included from /opt/intel/oneapi/compiler/2021.1.1/linux/bin/../include/sycl/CL/sycl.hpp:11:
In file included from /opt/intel/oneapi/compiler/2021.1.1/linux/bin/../include/sycl/CL/sycl/ONEAPI/atomic.hpp:11:
In file included from /opt/intel/oneapi/compiler/2021.1.1/linux/bin/../include/sycl/CL/sycl/ONEAPI/atomic_accessor.hpp:11:
In file included from /opt/intel/oneapi/compiler/2021.1.1/linux/bin/../include/sycl/CL/sycl/ONEAPI/atomic_enums.hpp:11:
In file included from /opt/intel/oneapi/compiler/2021.1.1/linux/bin/../include/sycl/CL/__spirv/spirv_ops.hpp:10:
/opt/intel/oneapi/compiler/2021.1.1/linux/bin/../include/sycl/CL/__spirv/spirv_types.hpp:11:10: fatal error: 'cstdint' file not found
#include <cstdint>
^~~~~~~~~
1 error generated.
make: *** [Makefile:14: all] Error 1

 

BR

Matrix 

0 Kudos
1 Solution
Matrix
Employee
1,312 Views

Self fixed w/ below command.

$ yum groupinstall 'Development Tools'

View solution in original post

2 Replies
Matrix
Employee
1,313 Views

Self fixed w/ below command.

$ yum groupinstall 'Development Tools'

RahulV_intel
Moderator
1,303 Views

Hi,


Thanks for posting the solution. Intel will no longer monitor this thread. Any further discussion on this thread will be considered community only.


Regards,

Rahul


Reply