ulysseB / telamon

A framework to find good combinations of optimizations for computational kernels on GPUs.
https://ulysseb.github.io/telamon/telamon
Apache License 2.0
23 stars 6 forks source link

Add script expenv-check verifying GPU and CPU settings for experiments #301

Closed andidr closed 4 years ago

andidr commented 4 years ago

The script expenv-check verifies settings for the system's GPUs and CPUs specified on the command line. These can be:

By default, settings are only checked and the script fails if the actual settings and the expected settings do not match. If the --force flag is specified, the script tries to enfore the specified settings by invoking appropriate tools (cpufreq-set and nvidia-smi) and only fails if the actual settings do not match the specified settings in a second check after modification.

Forcing settings might require certain system settings if expenv-check is invoked as a user other than root. The installation script expenv-install provides a setup procedure:

The installation is done by simply invoking the installation script as root, e.g.:

$ cd tools/expenv $ sudo ./expenv-install

A reboot might be necessary after the installation. Users that should be able to set CPU scaling governors must be added to the group "cpufreq".