This pull request primarily focuses on improving the target detection functionality in the bitblas Python package, particularly for NVIDIA targets. The changes include the addition of a new function to list all NVIDIA targets, modifications to error handling and logging, and a new script to display available targets. Additionally, a new dependency, tabulate, has been added to the development requirements.
python/bitblas/utils/target_detector.py: A new function get_all_nvidia_targets has been added to list all available NVIDIA targets. Additionally, the find_best_match function has been updated to provide a more informative error message when the best match is not a valid CUDA target. [1][2]
New script for displaying targets:
tools/get_available_targets.py: A new script has been added that uses the get_all_nvidia_targets function to retrieve all available NVIDIA targets and display them in a table format.
Dependency changes:
requirements-dev.txt: The tabulate package has been added to the development requirements to support the new script for displaying targets.
This pull request primarily focuses on improving the target detection functionality in the
bitblas
Python package, particularly for NVIDIA targets. The changes include the addition of a new function to list all NVIDIA targets, modifications to error handling and logging, and a new script to display available targets. Additionally, a new dependency,tabulate
, has been added to the development requirements.Target detection improvements:
python/bitblas/utils/__init__.py
: Theget_all_nvidia_targets
function has been imported from thetarget_detector
module.python/bitblas/utils/target_detector.py
: A new functionget_all_nvidia_targets
has been added to list all available NVIDIA targets. Additionally, thefind_best_match
function has been updated to provide a more informative error message when the best match is not a valid CUDA target. [1] [2]New script for displaying targets:
tools/get_available_targets.py
: A new script has been added that uses theget_all_nvidia_targets
function to retrieve all available NVIDIA targets and display them in a table format.Dependency changes:
requirements-dev.txt
: Thetabulate
package has been added to the development requirements to support the new script for displaying targets.TODO Items: