MCPcopy Create free account
hub / github.com/NVIDIA/SOL-ExecBench / get_entry_symbol

Method get_entry_symbol

src/sol_execbench/core/data/solution.py:298–310  ·  view source on GitHub ↗

Extract the function/symbol name from the entry point specification. The entry point format is '{file_path}::{function_name}', and this method returns the function name component. This is the symbol that builders will look up in the compiled module or imported Python module.

(self)

Source from the content-addressed store, hash-verified

296 return Path(self.spec.entry_point.split("::")[0])
297
298 def get_entry_symbol(self) -> str:
299 """Extract the function/symbol name from the entry point specification.
300
301 The entry point format is '{file_path}::{function_name}', and this method
302 returns the function name component. This is the symbol that builders will
303 look up in the compiled module or imported Python module.
304
305 Returns
306 -------
307 str
308 The function or symbol name to be loaded (e.g., 'run', 'forward', 'kernel').
309 """
310 return self.spec.entry_point.split("::")[-1]
311
312 def get_entry_source(self) -> Optional[SourceFile]:
313 """Get the entry source file specified in the build spec.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected