<commit_before>from devito import configuration
from examples.seismic.acoustic.acoustic_example import acoustic_setup


class IsotropicAcoustic(object):

    params = ([(492, 492, 492)], [12])
    param_names = ['shape', 'space_order']

    repeat = 3

    timeout = 600.0

    # Default shape for loop blocking
    x0_blk0_size = 16
    y0_blk0_size = 16

    # Default number of threads -- run across all sockets currently
    nthreads = configuration['platform'].cores_physical

    def time_forward(self, shape, space_order):
        solver = acoustic_setup(shape=shape,
                                space_order=space_order,
                                opt=('advanced', {'openmp': True}))

        solver.forward(x0_blk0_size=IsotropicAcoustic.x0_blk0_size,
                       y0_blk0_size=IsotropicAcoustic.y0_blk0_size,
                       nthreads=IsotropicAcoustic.nthreads,
                       time_M=50)<commit_msg>asv: Drop nthreads= in benchmarks<commit_after>from examples.seismic.acoustic.acoustic_example import acoustic_setup


class IsotropicAcoustic(object):

    params = ([(492, 492, 492)], [12])
    param_names = ['shape', 'space_order']

    repeat = 3

    timeout = 600.0

    # Default shape for loop blocking
    x0_blk0_size = 16
    y0_blk0_size = 16

    def time_forward(self, shape, space_order):
        solver = acoustic_setup(shape=shape,
                                space_order=space_order,
                                opt=('advanced', {'openmp': True}))

        solver.forward(x0_blk0_size=IsotropicAcoustic.x0_blk0_size,
                       y0_blk0_size=IsotropicAcoustic.y0_blk0_size,
                       time_M=50)
{'fraction_non_alphanumeric': 0.08896797153024912, 'fraction_numerical': 0.04033214709371293, 'mean_word_length': 2.374, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3860324', 'n_tokens_mistral': 570, 'n_tokens_neox': 487, 'n_words': 99}