diff --git a/csrc/jit/kernel_runtime.hpp b/csrc/jit/kernel_runtime.hpp index 42b7b4c..ba66eeb 100644 --- a/csrc/jit/kernel_runtime.hpp +++ b/csrc/jit/kernel_runtime.hpp @@ -46,7 +46,8 @@ public: std::istringstream iss(symbols); std::vector symbol_names; for (std::string line; std::getline(iss, line); ) { - if (line.find("STT_FUNC") == 0 and std::none_of(illegal_names.begin(), illegal_names.end(), + if (line.find("STT_FUNC") == 0 and line.find("STO_ENTRY") != std::string::npos and + std::none_of(illegal_names.begin(), illegal_names.end(), [&](const auto& name) { return line.find(name) != std::string::npos; })) { const auto& last_space = line.rfind(' '); symbol_names.push_back(line.substr(last_space + 1));