[Target] Improve TVM Target related items #45
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: