@@ -0,0 +1,2998 @@
+# *****************************************************************************%0A# Copyright (c) 2020, Intel Corporation All rights reserved.%0A#%0A# Redistribution and use in source and binary forms, with or without%0A# modification, are permitted provided that the following conditions are met:%0A#%0A#     Redistributions of source code must retain the above copyright notice,%0A#     this list of conditions and the following disclaimer.%0A#%0A#     Redistributions in binary form must reproduce the above copyright notice,%0A#     this list of conditions and the following disclaimer in the documentation%0A#     and/or other materials provided with the distribution.%0A#%0A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS %22AS IS%22%0A# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,%0A# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR%0A# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR%0A# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,%0A# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,%0A# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;%0A# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,%0A# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR%0A# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,%0A# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A# *****************************************************************************%0A%0A%0Aimport argparse%0Aimport os%0Aimport shutil%0A%0Afrom pathlib import Path%0Afrom utilities import SDC_Build_Utilities%0A%0A%0Adef run_benchmarks(sdc_utils, args_list, num_threads_list):%0A    os.chdir(str(sdc_utils.src_path.parent))%0A%0A    for args_set in args_list:%0A        for num_threads in num_threads_list:%0A            os.environ%5B'NUMBA_NUM_THREADS'%5D = num_threads%0A            sdc_utils.log_info(f'Run Intel SDC benchmarks on %7Bnum_threads%7D threads', separate=True)%0A            sdc_utils.run_command(f'python -W ignore -m sdc.runtests %7Bargs_set%7D')%0A%0A%0Aif __name__ == '__main__':%0A    parser = argparse.ArgumentParser()%0A    parser.add_argument('--python', default='3.7', choices=%5B'3.6', '3.7', '3.8'%5D,%0A                        help='Python version, default = 3.7')%0A    parser.add_argument('--sdc-channel', default=None, help='Intel SDC channel')%0A    parser.add_argument('--args-list', required=True, nargs='+', help='List of arguments sets for benchmarks')%0A    parser.add_argument('--num-threads-list', required=True, nargs='+',%0A                        help='List of values for NUMBA_NUM_THREADS env variable')%0A%0A    args = parser.parse_args()%0A%0A    sdc_utils = SDC_Build_Utilities(args.python, args.sdc_channel)%0A    sdc_utils.log_info('Run Intel(R) SDC benchmarks', separate=True)%0A    sdc_utils.log_info(sdc_utils.line_double)%0A    sdc_utils.create_environment(%5B'scipy', 'openpyxl', 'xlrd'%5D)%0A    sdc_utils.install_conda_package(%5B'sdc'%5D)%0A%0A    run_benchmarks(sdc_utils, args.args_list, args.num_threads_list)%0A

Add simple script for benchmark execution (#677)