Fix CUBIN symbol name compatibility
This commit is contained in:
@@ -46,7 +46,8 @@ public:
|
|||||||
std::istringstream iss(symbols);
|
std::istringstream iss(symbols);
|
||||||
std::vector<std::string> symbol_names;
|
std::vector<std::string> symbol_names;
|
||||||
for (std::string line; std::getline(iss, line); ) {
|
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& name) { return line.find(name) != std::string::npos; })) {
|
||||||
const auto& last_space = line.rfind(' ');
|
const auto& last_space = line.rfind(' ');
|
||||||
symbol_names.push_back(line.substr(last_space + 1));
|
symbol_names.push_back(line.substr(last_space + 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user