Skip to main content

Precision auto-tuning of floating-point variables in program

Project description

Build Publish License CodeCov Documentation Status

cadnaPromise is a precision auto-tuning software using command-line interfaces.

Install

To install cadnaPromise, simply use the pip command in terminal:

pip install cadnaPromise

after that, to activate the cadnaPromise, use the command in terminal:

init-promise

Check the if cadnaPromise is installed:

promise --version

Dependencies

The installation of cadnaPromise requires the the following Python libraries: colorlog, colorama, pyyaml, regex.

The compiling of cadnaPromise requires g++. Please ensure the installation of above libraries for a proper running of cadnaPromise.

Usage

In terminal, simply enter the command bellow:

      get help:     promise --help | promise
get version:  promise --version
      run program:  promise --precs=(customized precisions/built precisions) [options]

Options:

--help                        Show this screen.
--conf CONF_FILE              get the configuration file [default: promise.yml]
--output OUTPUT               set the path of the output (where the result files are put)
--verbosity VERBOSITY         set the verbosity (betwen 0  and 4 for very low level debug) [default: 1]
--log LOGFILE                 set the log file (no log file if this is not defined)
--verbosityLog VERBOSITY      set the verbosity of the log file
--debug                       put intermediate files into debug/ (and compileErrors/ for compilation errrors) and display the execution trace when an error comes
--run RUN                     file to be run
--compile COMMAND             command to compile the code
--files FILES                 list of files to be examined by Promise (by default, all the .cc files)
--nbDigits DIGITS             general required number of digits
--path PATH                   set the path of the project (by default, the current path)
--pause                       do pause between steps
--noParsing                   do not parse the C file (__PROMISE__ are replaced and that's all)
--alias ALIAS                 allow aliases (examples "g++=g++-14") [default:""]
--version                     show the version of cadnaPromise

Acknowledgements

cadnaPromise is based on Promise2 (Hilaire et al), a full rewriting of the first PROMISE version (Picot et al).

This work was supported by the France 2030 NumPEx Exa-MA (ANR-22-EXNU-0002) project managed by the French National Research Agency (ANR). Promise2 has been developed with the financial support of the COMET project Model-Based Condition Monitoring and Process Control Systems, hosted by the Materials Center Leoben Forschung GmbH.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cadnapromise-0.2.7.tar.gz (1.3 MB view details)

Uploaded Source

File details

Details for the file cadnapromise-0.2.7.tar.gz.

File metadata

  • Download URL: cadnapromise-0.2.7.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cadnapromise-0.2.7.tar.gz
Algorithm Hash digest
SHA256 787374184c63f50bbb3daadad6ce17c57562167f8feca31e1f8f928f81044f25
MD5 e225034ba53495ba6a55c38004cdc231
BLAKE2b-256 80d1b545c4674c6fc90670a45dbd9d6f32223e311ec3bda153948dda66f313b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page