AITemplate
AITemplate copied to clipboard
include cstdint for int*_t in profiler
The conv2d profiler can be built well with gcc-12. But, when switching to gcc-13, compilation failed with error listed below. This error may caused by reduced usage of cstdint header (https://gcc.gnu.org/gcc-13/porting_to.html) This PR fixes the error by adding the cstdint header.
2024-05-01 18:20:30,972 INFO <aitemplate.backend.builder> make stderr:
conv2d_bias_relu/temp_bfe88629c48a2a08697feb310392b6d3f905c152.cu(24): error: identifier "uint8_t" is undefined
uint8_t*,
^
conv2d_bias_relu/temp_bfe88629c48a2a08697feb310392b6d3f905c152.cu(46): error: identifier "uint8_t" is undefined
uint8_t*,
^
conv2d_bias_relu/temp_bfe88629c48a2a08697feb310392b6d3f905c152.cu(68): error: identifier "uint8_t" is undefined
uint8_t*,
^
conv2d_bias_relu/temp_bfe88629c48a2a08697feb310392b6d3f905c152.cu(90): error: identifier "uint8_t" is undefined
uint8_t*,
^
conv2d_bias_relu/temp_bfe88629c48a2a08697feb310392b6d3f905c152.cu(112): error: identifier "uint8_t" is undefined
uint8_t*,
^
conv2d_bias_relu/temp_bfe88629c48a2a08697feb310392b6d3f905c152.cu(134): error: identifier "uint8_t" is undefined
uint8_t*,
^
conv2d_bias_relu/temp_bfe88629c48a2a08697feb310392b6d3f905c152.cu(156): error: identifier "uint8_t" is undefined
uint8_t*,
^
conv2d_bias_relu/temp_bfe88629c48a2a08697feb310392b6d3f905c152.cu(178): error: identifier "uint8_t" is undefined
uint8_t*,
...