Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestion: config file #92

Open
vict0rsch opened this issue Jan 23, 2024 · 1 comment
Open

Feature suggestion: config file #92

vict0rsch opened this issue Jan 23, 2024 · 1 comment

Comments

@vict0rsch
Copy link

vict0rsch commented Jan 23, 2024

Would be great to specify an identifier (like a project name or something) to map a project to a path, possibly per cluster. Something like

# ~/.milatools.yaml
myproject:
  mila: /home/mila/s/schmidtv/project/code/repos/repoName
  beluga: /home/vsch/scratch/project/repos/repoName

myproject2:
  mila: /home/mila/s/schmidtv/thatthing/foo/proj2
  beluga: /home/vsch/scratch/thatotherthing/bar/proj2-github

and then specify an identifier or project with -p myproject2 (or -i myproject2)


You could even push this feature further to be more complex and precise with alloc defaults

# ~/.milatools.yaml
myproject:
  mila: 
    path: /home/mila/s/schmidtv/project/code/repos/repoName
    alloc:
      cpus: 2
      memory: 12G
  beluga: 
    path: /home/vsch/scratch/project/repos/repoName

myproject2:
  mila: 
    path: /home/mila/s/schmidtv/thatthing/foo/proj2
    alloc:
      memory: 16G
  beluga: 
    path: /home/vsch/scratch/thatotherthing/bar/proj2-github

And potentially overwrite defaults with something like --remember-alloc

@vict0rsch
Copy link
Author

vict0rsch commented Jan 23, 2024

And milatools would always create a config file with an example structure, either in comments or as an unused dummy project, if it does not already exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant