We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d1aa4 commit 2f58e70Copy full SHA for 2f58e70
csrc/jit/kernel_runtime.hpp
@@ -46,7 +46,8 @@ class KernelRuntime final {
46
std::istringstream iss(symbols);
47
std::vector<std::string> symbol_names;
48
for (std::string line; std::getline(iss, line); ) {
49
- 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
50
+ std::none_of(illegal_names.begin(), illegal_names.end(),
51
[&](const auto& name) { return line.find(name) != std::string::npos; })) {
52
const auto& last_space = line.rfind(' ');
53
symbol_names.push_back(line.substr(last_space + 1));
0 commit comments