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

Add Known Issues section to README #12

Merged
merged 2 commits into from
Oct 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ To run this tutorial locally you will require:

```bash
# I.e. if using a venv and pip
python3 -m pip install -U jupyterlab
python3 -m pip install -U jupyterlab matplotlib
```

4. Launch `jupyter lab` or the legacy `jupyter notebook` interface and open `FLAME_GPU_2_python_tutorial.ipynb`
Expand All @@ -70,3 +70,38 @@ To run this tutorial locally you will require:
# Using jupyter notebook
jupyter notebook FLAME_GPU_2_python_tutorial.ipynb
```

## Known Issues

### Missing Jitify Compilation Error Messages

Run time compilation of agent functions may fail if there are errors in the agent functions.

These errors are output to `stdout` by [Jitify](https://github.com/nvidia/jitify), a c++ library used to simplify run time compilation via NVRTC.

Older versions of `ipykernel` (`< 6.0.0a5`) do not capture `stdout` or `stderr` from python cells correctly, meaning that the error messages explaining compilation errors are not visible within the notebook.

To avoid this, and have visible error messages please ensure that you are using `ipykernel >= 6.0.0a5`.

> Note: `ipykernel >= 6.0` requires `python >= 3.7`

Alternatively the errors will be visible in the shell the ipython/jupyter server, if this is available to you.

#### Google Colab

Google Colab uses an older version of `ipykernel`, which exhibits this issue.

It is possible to update this, by upgrading `ipykernel` via pip inside the Colab session, and then restarting the kernel.

> **WARNING**: This may cause other errors with package version mismatches

1. Execute the following in a notebook cell in Google Colab

```python
import sys
!{sys.executable} -m pip install -U -q ipython ipykernel>=6.0.0
```

2. Restart the Runtime by either:
+ `Runtime` > `Restart Runtime` > `Yes`
+ `ctrl+M .` > `Yes`