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

Method get_entry_path

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

Extract the file path from the entry point specification. The entry point format is '{file_path}::{function_name}', and this method returns the file path component as a Path object. Returns ------- Path The relative path to the entry source file

(self)

Source from the content-addressed store, hash-verified

283 return self
284
285 def get_entry_path(self) -> Path:
286 """Extract the file path from the entry point specification.
287
288 The entry point format is '{file_path}::{function_name}', and this method
289 returns the file path component as a Path object.
290
291 Returns
292 -------
293 Path
294 The relative path to the entry source file (e.g., 'main.py', 'src/kernel.cu').
295 """
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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected