Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Fix instructions on building cub
Browse files Browse the repository at this point in the history
  • Loading branch information
zasdfgbnm committed May 10, 2021
1 parent a8910ac commit 65c97f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.p4config
*~
\#*
/build
12 changes: 9 additions & 3 deletions README.md
Expand Up @@ -143,23 +143,29 @@ See the [changelog](CHANGELOG.md) for details about specific releases.
<br><hr>
<h3>Development Process</h3>
CUB and thrust depends on each other. To build CUB, you need to clone the
same version of thrust.
CUB uses the [CMake build system](https://cmake.org/) to build unit tests,
examples, and header tests. To build CUB as a developer, the following
recipe should be followed:
```
# Clone CUB repo from github:
git clone https://github.com/NVIDIA/cub.git
# Clone the same version of thrust:
git clone --recursive https://github.com/NVIDIA/thrust.git /path/to/thrust_repo

cd cub

# Create build directory:
mkdir build
cd build

# Configure -- use one of the following:
cmake .. # Command line interface.
ccmake .. # ncurses GUI (Linux only)
cmake-gui # Graphical UI, set source/build directories in the app
cmake -DThrust_DIR=/path/to/thrust_repo/thrust/cmake .. # Command line interface.
ccmake -DThrust_DIR=/path/to/thrust_repo/thrust/cmake .. # ncurses GUI (Linux only)
cmake-gui # Graphical UI, set source/build/thrust directories in the app

# Build:
cmake --build . -j <num jobs> # invokes make (or ninja, etc)
Expand Down

0 comments on commit 65c97f2

Please sign in to comment.