Intel® oneAPI Base Toolkit
Support for the core tools and libraries within the base toolkit that are used to build and deploy high-performance data-centric applications.
419 Discussions

'cstdint' file not found while make matrix_mul sample

Matrix
Employee
3,103 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
3,084 Views

Self fixed w/ below command.

$ yum groupinstall 'Development Tools'

View solution in original post

0 Kudos
2 Replies
Matrix
Employee
3,085 Views

Self fixed w/ below command.

$ yum groupinstall 'Development Tools'

0 Kudos
RahulV_intel
Moderator
3,075 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


0 Kudos
Reply