Skip to content

builtin for bash to print some informations about cpu affinity

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

dupgit/cpubind-bash-builtin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a bash builtin thanks to bash-builtins crate.

It provides some information about the cpu affinity, the hostname, SLURM_JOB_ID, SLURM_PROCID and SLURM_LOCALID environment variables if they exists. Optionally you can provide an identifier that will be printed with all the other information using -i option.

Usage

Load the library into a bash builtin using with enable, use it and remove it when you do not need it anymore

$ enable -f target/release/libcpubind_bash_builtin.so cpubind
$ cpubind
myhostname -  -  -  -  - cpu affinity: 0 1 2 3 4 5 6 7 8 9 10 11
$ cpubind -i "id 1 🙂"
myhostname - id 1 🙂 -  -  -  - cpu affinity: 0 1 2 3 4 5 6 7 8 9 10 11
$ enable -d cpubind
$ cpubind
-bash: cpubind: command not found

About

builtin for bash to print some informations about cpu affinity

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages