pcg-mlp / KsanaLLM

Other
193 stars 24 forks source link

fatal error: 'type_traits' file not found #16

Open unmu opened 2 weeks ago

unmu commented 2 weeks ago

编译报错type_traits not found。请问该怎么解决?

24:In file included from :24/usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/interface/kernel_operator_common_intf.h10:::1044 ::
fatal error:  /usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/impl/dav_c220/kernel_operator_vec_duplicate_impl.h'type_traits' file not foundfatal error: :
'type_traits' file not found24
:10: fatal error: 'type_traits' file not found
#include <type_traits>#include <type_traits>

         ^~~~~~~~~~~~~#include <type_traits>         ^~~~~~~~~~~~~

         ^~~~~~~~~~~~~
In file included from /home/wanyl/runKsanaLLM/KsanaLLM/3rdparty/LLM_kernels/csrc/kernels/ascend/silu_mul/silu_mul_kernel.cc:7:
In file included from /usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/kernel_operator.h:27:
In file included from /usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/interface/kernel_operator_intf.h:30:
In file included from /usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/interface/kernel_operator_common_intf.h:44:
/usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/impl/dav_c220/kernel_operator_vec_duplicate_impl.h:24:10: fatal error: 'type_traits' file not found
#include <type_traits>
         ^~~~~~~~~~~~~
In file included from /home/wanyl/runKsanaLLM/KsanaLLM/3rdparty/LLM_kernels/csrc/kernels/ascend/fused_rotary_embedding/fused_rotary_embedding_kernel.cc:7:
In file included from /usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/kernel_operator.h:27:
In file included from /usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/interface/kernel_operator_intf.h:30:
In file included from /usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/interface/kernel_operator_common_intf.h:44:
/usr/local/Ascend/ascend-toolkit/latest/tools/tikcpp/tikcfw/impl/dav_c220/kernel_operator_vec_duplicate_impl.h:24:10: fatal error: 'type_traits' file not found
#include <type_traits>
         ^~~~~~~~~~~~~
whitelok commented 2 weeks ago

请问下你这个Ascend的版本是什么?如果方便的话也提供一下镜像信息?例如CPU指令是arm还是x86的,GCC版本,卡型等。