| 81 | } |
| 82 | |
| 83 | const Symbol* Program::findSymbol(const char* kernelName) const { |
| 84 | // avoid seg. fault if the program has not built yet |
| 85 | if (symbolTable_ == NULL) { |
| 86 | return NULL; |
| 87 | } |
| 88 | |
| 89 | const auto it = symbolTable_->find(kernelName); |
| 90 | return (it == symbolTable_->cend()) ? NULL : &it->second; |
| 91 | } |
| 92 | |
| 93 | int32_t Program::addDeviceProgram(Device& device, const void* image, size_t length, bool make_copy, |
| 94 | amd::option::Options* options, const amd::Program* same_prog, |
no outgoing calls
no test coverage detected