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

Make program to run configurable #6

Closed
nomeata opened this issue Sep 26, 2016 · 2 comments
Closed

Make program to run configurable #6

nomeata opened this issue Sep 26, 2016 · 2 comments

Comments

@nomeata
Copy link
Contributor

nomeata commented Sep 26, 2016

Many projects define multiple executables, some of which are not named the same way as the project. It would be good if that were configurable.

@nomeata nomeata changed the title Make binary configurable Make program to run configurable Sep 26, 2016
@cronburg
Copy link
Collaborator

cronburg commented Oct 2, 2016

This is a result of how the runProj system call string is constructed in the benchmark function of Profiling.hs. Namely projDir is referenced when we should presumably be referencing the list of executable files given in the config.atb file.

cronburg added a commit to cronburg/Autobahn that referenced this issue Oct 3, 2016
This includes:
- `.travis.yml` file which runs fibonacci test case.
- Fix to how we compute paths to make running with config.atb in the root
  of the project directory (to be profiled) possible.
- Comments in config.atb example.
- Reorganization of data types and defaults in `Types.hs` to allow
  for both Config and Profiling to use them - necessary for making
  executable configurable (Issue Genetic-Strictness#6).
- Threaded `Cfg` data type through functions like `heuristic`, `calculateFitRuns`,
  and `benchmark` thus cleaning up the type signatures and allowing us to add
  more parameters in the future (in particular the executable parameter here).
- In many places I build default data types using built-in "default"
  functions, and record syntax so as to not have to deal with
  incorrectly ordered parameters to constructors in the future.
- Syntax for specifying executable in config.atb.
- Cleaned up unnecessary monad binding of return, i.e. anywhere we say
  `x <- return y` we should instead be doing `let x = y`.

Signed-off-by: Karl Cronburg <karl.cronburg@gmail.com>
cronburg added a commit to cronburg/Autobahn that referenced this issue Oct 4, 2016
This includes:
- `.travis.yml` file which runs fibonacci test case.
- Fix to how we compute paths to make running with config.atb in the root
  of the project directory (to be profiled) possible.
- Comments in config.atb example.
- Reorganization of data types and defaults in `Types.hs` to allow
  for both Config and Profiling to use them - necessary for making
  executable configurable (Issue Genetic-Strictness#6).
- Threaded `Cfg` data type through functions like `heuristic`, `calculateFitRuns`,
  and `benchmark` thus cleaning up the type signatures and allowing us to add
  more parameters in the future (in particular the executable parameter here).
- In many places I build default data types using built-in "default"
  functions, and record syntax so as to not have to deal with
  incorrectly ordered parameters to constructors in the future.
- Syntax for specifying executable in config.atb.
- Cleaned up unnecessary monad binding of return, i.e. anywhere we say
  `x <- return y` we should instead be doing `let x = y`.

Signed-off-by: Karl Cronburg <karl.cronburg@gmail.com>
cronburg added a commit to cronburg/Autobahn that referenced this issue Oct 4, 2016
This includes:
- `.travis.yml` file which runs fibonacci test case.
- Fix to how we compute paths to make running with config.atb in the root
  of the project directory (to be profiled) possible.
- Comments in config.atb example.
- Reorganization of data types and defaults in `Types.hs` to allow
  for both Config and Profiling to use them - necessary for making
  executable configurable (Issue Genetic-Strictness#6).
- Threaded `Cfg` data type through functions like `heuristic`, `calculateFitRuns`,
  and `benchmark` thus cleaning up the type signatures and allowing us to add
  more parameters in the future (in particular the executable parameter here).
- In many places I build default data types using built-in "default"
  functions, and record syntax so as to not have to deal with
  incorrectly ordered parameters to constructors in the future.
- Syntax for specifying executable in config.atb.
- Cleaned up unnecessary monad binding of return, i.e. anywhere we say
  `x <- return y` we should instead be doing `let x = y`.

Signed-off-by: Karl Cronburg <karl.cronburg@gmail.com>
cronburg added a commit to cronburg/Autobahn that referenced this issue Oct 4, 2016
This includes:
- `.travis.yml` file which runs fibonacci test case.
- Fix to how we compute paths to make running with config.atb in the root
  of the project directory (to be profiled) possible.
- Comments in config.atb example.
- Reorganization of data types and defaults in `Types.hs` to allow
  for both Config and Profiling to use them - necessary for making
  executable configurable (Issue Genetic-Strictness#6).
- Threaded `Cfg` data type through functions like `heuristic`, `calculateFitRuns`,
  and `benchmark` thus cleaning up the type signatures and allowing us to add
  more parameters in the future (in particular the executable parameter here).
- In many places I build default data types using built-in "default"
  functions, and record syntax so as to not have to deal with
  incorrectly ordered parameters to constructors in the future.
- Syntax for specifying executable in config.atb.
- Cleaned up unnecessary monad binding of return, i.e. anywhere we say
  `x <- return y` we should instead be doing `let x = y`.

Signed-off-by: Karl Cronburg <karl.cronburg@gmail.com>
cronburg added a commit to cronburg/Autobahn that referenced this issue Oct 4, 2016
This includes:
- `.travis.yml` file which runs fibonacci test case.
- Fix to how we compute paths to make running with config.atb in the root
  of the project directory (to be profiled) possible.
- Comments in config.atb example.
- Reorganization of data types and defaults in `Types.hs` to allow
  for both Config and Profiling to use them - necessary for making
  executable configurable (Issue Genetic-Strictness#6).
- Threaded `Cfg` data type through functions like `heuristic`, `calculateFitRuns`,
  and `benchmark` thus cleaning up the type signatures and allowing us to add
  more parameters in the future (in particular the executable parameter here).
- In many places I build default data types using built-in "default"
  functions, and record syntax so as to not have to deal with
  incorrectly ordered parameters to constructors in the future.
- Syntax for specifying executable in config.atb.
- Cleaned up unnecessary monad binding of return, i.e. anywhere we say
  `x <- return y` we should instead be doing `let x = y`.

Signed-off-by: Karl Cronburg <karl.cronburg@gmail.com>
cronburg added a commit to cronburg/Autobahn that referenced this issue Oct 4, 2016
This includes:
- `.travis.yml` file which runs fibonacci test case.
- Fix to how we compute paths to make running with config.atb in the root
  of the project directory (to be profiled) possible.
- Comments in config.atb example.
- Reorganization of data types and defaults in `Types.hs` to allow
  for both Config and Profiling to use them - necessary for making
  executable configurable (Issue Genetic-Strictness#6).
- Threaded `Cfg` data type through functions like `heuristic`, `calculateFitRuns`,
  and `benchmark` thus cleaning up the type signatures and allowing us to add
  more parameters in the future (in particular the executable parameter here).
- In many places I build default data types using built-in "default"
  functions, and record syntax so as to not have to deal with
  incorrectly ordered parameters to constructors in the future.
- Syntax for specifying executable in config.atb.
- Cleaned up unnecessary monad binding of return, i.e. anywhere we say
  `x <- return y` we should instead be doing `let x = y`.

Signed-off-by: Karl Cronburg <karl.cronburg@gmail.com>
@cronburg
Copy link
Collaborator

cronburg commented Oct 4, 2016

Implemented in 45909f4 - see test/hello/config.atb for example usage of the 'executable' option.

To test multiple different executables, one still needs to create multiple config.atb files, which seems reasonable to me since e.g. each executable will have different input arguments and a different amount of time one might want to budget for it. We'll be adding a way to specify the name of config.atb on the command line soon (Issue #21).

@cronburg cronburg closed this as completed Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants