bitorch_engine.utils.cutlass_path.check_path

bitorch_engine.utils.cutlass_path.check_path(p: str) Tuple[bool, str][source]

Checks the provided path for the existence of the ‘cutlass.h’ file in expected directories.

This function attempts to locate the ‘cutlass.h’ header file in three potential locations relative to the provided path: 1. Directly within the provided path. 2. Within a ‘cutlass’ directory inside the provided path. 3. Within an ‘include/cutlass’ directory structure inside the provided path.

Parameters:

p (str) – The base path as a string where the search for ‘cutlass.h’ will begin.

Returns:

A tuple containing:
  • A boolean indicating whether ‘cutlass.h’ was found.

  • A string representing the path where ‘cutlass.h’ was found, or an empty string if not found.

Return type:

Tuple[bool, str]