Skip to content

Commit

Permalink
Fix softbody installation instructions in installation.md (#99)
Browse files Browse the repository at this point in the history
* Fix softbody installation instructions in installation.md

* Fix build_lib import issue

* Update the doc

---------

Co-authored-by: Jiayuan-Gu <[email protected]>
  • Loading branch information
xuanlinli17 and Jiayuan-Gu authored May 30, 2023
1 parent 538ab6c commit 9fc260f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit 9fc260f

Please sign in to comment.