Skip to content

Commit

Permalink
deleted old atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenNhuDi committed Jun 4, 2024
1 parent 1f35be8 commit 93c3176
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/config-tuning/select_best_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from matplotlib import pyplot as plt
import argparse
from jinja2 import Environment, PackageLoader
from sys import version_info

env = Environment(
loader=PackageLoader("select_best_config"),
Expand Down Expand Up @@ -53,12 +52,7 @@ def guess_gcn_architecture(path: str, raw_json_data: dict):

# Extract the groups of the regex match to a DataFrame

# need at least python 3.11 to have possesive quantifier and atomic grouping
if version_info.major >= 3 and version_info.minor >= 11:
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+)'
else:
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)
Expand Down

0 comments on commit 93c3176

Please sign in to comment.