Skip to content

Commit

Permalink
Add additional clarity and conda commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Jan 30, 2025
1 parent c2af7dd commit f71a375
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/source/developer_guide/guides/4_source_cpp_stage.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ limitations under the License.

# Creating a C++ Source Stage
## Building the Example
The code for this guide can be found in the `examples/developer_guide/4_rabbitmq_cpp_stage` directory of the Morpheus repository. There are two ways to build the example. The first is to build the examples along with Morpheus by passing the `-DMORPHEUS_BUILD_EXAMPLES=ON` flag to CMake, for users using the `scripts/compile.sh` at the root of the Morpheus repo can do this by setting the `CMAKE_CONFIGURE_EXTRA_ARGS` environment variable:
The code for this guide can be found in the `examples/developer_guide/4_rabbitmq_cpp_stage` directory of the Morpheus repository. There are two ways to build the example.

### Compiling the Example with Morpheus
The first is to build the examples along with Morpheus by passing the `-DMORPHEUS_BUILD_EXAMPLES=ON` flag to CMake. This approach is preferable for users who are already building Morpheus from source. For users using the `scripts/compile.sh` at the root of the Morpheus repo can do this by setting the `CMAKE_CONFIGURE_EXTRA_ARGS` environment variable:
```bash
CMAKE_CONFIGURE_EXTRA_ARGS="-DMORPHEUS_BUILD_EXAMPLES=ON" ./scripts/compile.sh
```

The second method is to build the example as a standalone project. From the root of the Morpheus repo execute:
### Compiling the Example as a standalone Project
The second method is to build the example as a standalone project. For those using the release container, additional dependencies will need to be installed prior to performing the build:
```bash
conda env update --solver=libmamba -n morpheus --file /workspace/conda/environments/dev_cuda-125_arch-$(arch).yaml
```

From the root of the Morpheus repo execute:
```bash
cd examples/developer_guide/4_rabbitmq_cpp_stage
./compile.sh
Expand Down

0 comments on commit f71a375

Please sign in to comment.