Setup scripts for Auptimizer

aup.setup is the entry point to set up the .aup environment.

See Set up environment for more details.

Run it as:

python -m aup.setup [env_template] …

The templates are at Examples/2dfunc_diff_res/*.ini.

Additional arguments

Usage: setup.py [OPTIONS] [ENV]

  Create environment based on env file for Auptimizer 

  Copyright (C) 2018  LG Electronics Inc. 

  GPL-3.0 License. This program comes with ABSOLUTELY NO WARRANTY; 

  Arguments:     env {str}: Auptimizer config folder path. Default to create
  at `./.aup/`.  Leave empty to create a new one.                Or use the
  path of the filename (env.ini) to load predefined values (also use
  --overwrite).

  Raises:
      Exception: If failed to load the existing Auptimizer configuration file.

Options:
  --cpu INTEGER                  Number of cores
  --gpu TEXT                     GPU file path
  --node TEXT                    Node file path
  --aws TEXT                     AWS file path
  --user TEXT                    User account for Auptimizer
  --overwrite                    overwrite existing folder (and records!)
  --log [debug|info|warn|error]  Log level
  -h, --help                     Show this message and exit.
/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/scipy/__init__.py:137: UserWarning: NumPy 1.16.5 or above is required for this version of SciPy (detected version 1.16.4)
  UserWarning)
/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at  /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
  return torch._C._cuda_getDeviceCount() > 0

APIs

interactive_env(config)[source]
interactive_setup(env, config, cpu, gpu, node, aws, user, overwrite)[source]

Interactive user interface to get parameters for setup

setup(config, cpu, gpu, node, aws, user, overwrite, log)[source]

Set up .aup environment

Parameters
  • config – env config

  • cpu – number of cpu jobs

  • gpu – gpu configuration file, ‘none’ if not exist

  • node – node file, ‘none’ if not exist

  • aws – aws file

  • user – username, user specified > OS USER variable > ‘default’

  • overwrite – overwrite existing .aup environment

  • log – log level for setupdb