Skip to content

Fix softbody installation instructions in installation.md #99

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

Merged
merged 3 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion docs/source/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ If `nvcc` is included in `$PATH`, we will try to figure out the variable `CUDA_P
After CUDA is properly set up, compile Warp customized for ManiSkill2:

``` bash
# If you encounter "ModuleNotFoundError: No module named 'warp'", please add warp_maniskill to the python path.
export PYTHONPATH=/path/to/ManiSkill2/warp_maniskill:$PYTHONPATH
# warp.so is generated under warp_maniskill/warp/bin
python -m warp_maniskill.build_lib
```
Expand Down Expand Up @@ -169,7 +171,7 @@ The following errors can happen if the Vulkan driver is broken. Try to reinstall
If the soft-body environment throws a **memory error**, you can try compiling Warp in the debug mode.

```bash
python -m warp_maniskill.build_lib --mode debug
PYTHONPATH="$PWD"/warp_maniskill:$PYTHONPATH python -m warp_maniskill.build_lib --mode debug
```

Remember to compile again in the release mode after you finish debugging. In the debug mode, if the error becomes `unsupported toolchain`, it means you have a conflicting CUDA version.
Expand Down
5 changes: 5 additions & 0 deletions warp_maniskill/build_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
import os
import argparse

package_dir = os.path.join(os.path.dirname(__file__))
package_dir = os.path.normpath(package_dir)
if package_dir not in sys.path:
sys.path.append(package_dir)

import warp.config
import warp.build

Expand Down