LoadTilingLibrary
Function Usage
Loads the corresponding tiling dynamic library based on the input path. After implementing an operator in the project-based operator development mode, you can obtain the corresponding dynamic tiling library file by compiling the operator package or compiling the operator dynamic library.
Prototype
1
|
bool LoadTilingLibrary(const char *tilingSoPath) const |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
tilingSoPath |
Input |
Path of the tiling dynamic library. The path can be a relative path or an absolute path. |
Returns
true: The tiling dynamic library is successfully loaded. false: The tiling dynamic library fails to be loaded. For details about the error, see the log information.
For details about how to configure and view logs, see Logging.
Restrictions
None
Examples
1 2 3 4 5 6 7 |
context_ascendc::OpTilingRegistry tmpIns; bool flag = tmpIns.LoadTilingLibrary("/your/path/to/so_path/liboptiling.so"); if (flag == false) { std::cout << "Load tiling so failed" << std::endl; ... } // ... |
Parent topic: OpTilingRegistry