Exemple #1
0
if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('--python',
                        required=True,
                        choices=['3.6', '3.7', '3.8'],
                        help='Python version')
    parser.add_argument('--numpy',
                        required=True,
                        choices=['1.16', '1.17', '1.18'],
                        help='Numpy version')

    args = parser.parse_args()

    sdc_utils = SDC_Build_Utilities(args.python)
    sdc_utils.numpy = args.numpy
    sdc_utils.log_info('Build Intel(R) SDC conda and wheel packages',
                       separate=True)
    sdc_utils.log_info(sdc_utils.line_double)

    sdc_env_packages = ['conda-build']
    if platform.system() == 'Windows':
        sdc_env_packages += [
            'conda-verify', 'vc', 'vs2015_runtime', 'vs2015_win-64',
            'pywin32=223'
        ]
    # Install conda-build and other packages from anaconda channel due to issue with wheel
    # output build if use intel channels first
    sdc_utils.create_environment(sdc_env_packages)

    build(sdc_utils)
Exemple #2
0
    os.chdir(str(sdc_utils.src_path))

    sdc_utils.log_info('Run Intel SDC conda tests', separate=True)
    sdc_conda_package = str(
        list(sdc_utils.src_path.glob('**/sdc*.tar.bz2'))[0])
    conda_test_command = f'conda build --test {sdc_utils.channels} {sdc_conda_package}'
    sdc_utils.run_command(conda_test_command)
    sdc_utils.log_info('Intel SDC tests PASSED', separate=True)

    return


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('--python',
                        default='3.7',
                        choices=['3.6', '3.7', '3.8'],
                        help='Python version, default = 3.7')
    parser.add_argument('--sdc-channel',
                        required=True,
                        help='Local Intel SDC channel')

    args = parser.parse_args()

    sdc_utils = SDC_Build_Utilities(args.python, args.sdc_channel)
    sdc_utils.log_info('Run Intel(R) SDC tests', separate=True)
    sdc_utils.log_info(sdc_utils.line_double)
    sdc_utils.create_environment(['conda-build'])

    run_tests(sdc_utils)
Exemple #3
0

if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('--python',
                        default='3.7',
                        choices=['3.6', '3.7', '3.8'],
                        help='Python version, default = 3.7')
    parser.add_argument('--channels',
                        default=None,
                        help='Default env channels')
    parser.add_argument('--sdc-channel',
                        default=None,
                        help='Intel SDC channel')
    parser.add_argument('--publish',
                        action='store_true',
                        help='Publish documentation to sdc-doc')

    args = parser.parse_args()

    sdc_utils = SDC_Build_Utilities(args.python, args.channels,
                                    args.sdc_channel)
    sdc_utils.log_info('Build Intel(R) SDC documentation', separate=True)
    sdc_utils.log_info(sdc_utils.line_double)
    sdc_utils.create_environment(['sphinx', 'sphinxcontrib-programoutput'])
    sdc_utils.install_conda_package(['sdc'])

    build_doc(sdc_utils)
    if args.publish:
        publish_doc(sdc_utils)
Exemple #4
0
    parser.add_argument('--python',
                        default='3.7',
                        choices=['3.6', '3.7', '3.8'],
                        help='Python version, default = 3.7')
    parser.add_argument('--channels',
                        default=None,
                        help='Default env channels')
    parser.add_argument('--sdc-channel',
                        default=None,
                        help='Intel SDC channel')
    parser.add_argument('--args-list',
                        required=True,
                        nargs='+',
                        help='List of arguments sets for benchmarks')
    parser.add_argument(
        '--num-threads-list',
        required=True,
        nargs='+',
        help='List of values for NUMBA_NUM_THREADS env variable')

    args = parser.parse_args()

    sdc_utils = SDC_Build_Utilities(args.python, args.channels,
                                    args.sdc_channel)
    sdc_utils.log_info('Run Intel(R) SDC benchmarks', separate=True)
    sdc_utils.log_info(sdc_utils.line_double)
    sdc_utils.create_environment(['openpyxl', 'xlrd'])
    sdc_utils.install_conda_package(['sdc'])

    run_benchmarks(sdc_utils, args.args_list, args.num_threads_list)
Exemple #5
0
from pathlib import Path
from utilities import SDC_Build_Utilities


def check_sdc_installed(sdc_utils, sdc_package):
    cmd_output = sdc_utils.get_command_output('conda list sdc')
    pattern = sdc_package.replace('=', r'\s+')
    return re.search(pattern, cmd_output)


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('--python', default='3.7', choices=['3.6', '3.7', '3.8'],
                        help='Python version, default = 3.7')
    parser.add_argument('--channels', default=None, help='Default env channels')
    parser.add_argument('--sdc-channel', default=None, help='Intel SDC channel')

    args = parser.parse_args()

    sdc_utils = SDC_Build_Utilities(args.python, args.channels, args.sdc_channel)
    sdc_utils.log_info('Test Intel(R) SDC conda install', separate=True)
    sdc_utils.log_info(sdc_utils.line_double)
    sdc_utils.create_environment()
    sdc_package = f'sdc={sdc_utils.get_sdc_version_from_channel()}'

    # channels list is aligned with install instruction in README.rst
    install_channels = "-c intel/label/beta -c intel -c defaults -c conda-forge"
    sdc_utils.install_conda_package([sdc_package], channels=install_channels)

    assert check_sdc_installed(sdc_utils, sdc_package), "SDC package was not installed"