Skip to content

Commit

Permalink
Merge pull request #500 from NguyenNhuDi/develop
Browse files Browse the repository at this point in the history
Fixed " unknown extension ?>" error when running scripts/config-tuning/select_best_config.py with python version that's older than 3.11
  • Loading branch information
NguyenNhuDi authored Jun 7, 2024
2 parents 7691501 + 93c3176 commit 8f73820
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Documentation for rocRAND is available at
[https://rocm.docs.amd.com/projects/rocRAND/en/latest/](https://rocm.docs.amd.com/projects/rocRAND/en/latest/)

## (Unreleased) rocRAND-3.1.1 for ROCm 6.2.0

## Fixes
* Fixed " unknown extension ?>" issue in scripts/config-tuning/select_best_config.py
when using python version thats older than 3.11

## (Unreleased) rocRAND-3.1.0 for ROCm 6.2.0

### Additions
Expand Down
4 changes: 3 additions & 1 deletion scripts/config-tuning/select_best_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def guess_gcn_architecture(path: str, raw_json_data: dict):
gb_per_s_series.name = 'gb_per_s'

# Extract the groups of the regex match to a DataFrame
name_regex = r'^(?P<generator>\S+?)_(?P<distribution>uniform|normal|log_normal|poisson)_(?P<value_type>(?>unsigned_)?(?>int|short|char|long_long|float|half|double))_t(?P<block_size>\d+)_b(?P<grid_size>\d+)'

name_regex = r'^(?P<generator>\S+?)_(?P<distribution>uniform|normal|log_normal|poisson)_(?P<value_type>(unsigned_)?(int|short|char|long_long|float|half|double))_t(?P<block_size>\d+)_b(?P<grid_size>\d+)'

extracted_data = benchmark_data['name'].str.extract(name_regex)
extracted_data['block_size'] = extracted_data['block_size'].astype(int)
extracted_data['grid_size'] = extracted_data['grid_size'].astype(int)
Expand Down

0 comments on commit 8f73820

Please sign in to comment.