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

Evaluate VScode and OPenM++ model development plugins and other tools #9

Closed
Tracked by #2
chuckbelisle opened this issue Sep 20, 2023 · 2 comments
Closed
Tracked by #2
Assignees

Comments

@chuckbelisle
Copy link
Contributor

chuckbelisle commented Sep 20, 2023

Epic: #2

By using our current JupyterLab image in the Dev cluster, let's eval and validate VScode as a viable IDE to develop MicroSim models and its integration with OpenM++.

The latest AAW jupyterlab-cpu image in dev/prod now includes c++ debugger and c++ extension for the built in vs code, tested following this guide: https://code.visualstudio.com/docs/cpp/config-msvc

Guide for getting started with model development: https://openmpp.org/wiki/openmpp-wiki.html#Linux-Create-and-Debug-Model

It would be useful to get an evaluation of the default notebook resources, currently the CPU request is 0.5 but can scale to 4 cores, while the memory starts at 2GB and can scale to 4GB. Is this enough for basic model development and would additional resources (on the bursting side primarily) be an advantage?

@KrisWilliamson
Copy link
Contributor

KrisWilliamson commented Sep 29, 2023

Initial report.

  • Models run, using both the UI and via the command line.
  • Models cannot be built due to a OpenM++ header file not being found.
    • libopenm folder not on PATH
    • libopenm is located at /opt/openm/1.15.4/openm
    • A ompp specific env variable called OM_ROOT should be set by the image to be /opt/openm/1.15.4/
    • export OM_ROOT=/opt/openmpp/1.15.4
    • The models build after setting this env variable.
      • Not sure things are being put in the right place though.

The env var should be set by the image and not by the user, but will work as a work-around until this is fixed.
There are other openm specific env vars used in the makefile that will need to be set.

  • OUT_PREFIX
  • BUILD_DIR
  • OM_MESSAGE_USE - used for mpi
  • MODEL_NAME - defaults to current dir if not set
  • RELEASE
  • OM_BD_LIB - location of sqlite

The OUT_PREFIX and BUILDDIR are user specific, meaning they depend on the path where the user put the model to be compiled, making this tricky to pre-set.

@KrisWilliamson
Copy link
Contributor

KrisWilliamson commented Sep 29, 2023

File associations have to be set in VSCode.
i.e. associate *.mpp and *.ompp files with *.cpp files
Can be set in Setting (gear icon)- Text Editor - Files - Associations
The openm wiki mentiones editing a setting.json file, but this does not seem to be an option in the installed version of VSCode, instead there being a wizard.
The mpp files are found and can be opened with VSCode, so this sees to be an option for syntax highlighting.

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

3 participants