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!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
255 Discussions

'cstdint' file not found while make matrix_mul sample

Matrix
Employee
730 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
711 Views

Self fixed w/ below command.

$ yum groupinstall 'Development Tools'

View solution in original post

2 Replies
Matrix
Employee
712 Views

Self fixed w/ below command.

$ yum groupinstall 'Development Tools'

View solution in original post

RahulV_intel
Moderator
702 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