Update README to include examples and benchmarking
MODIFY
README.md
README.md
@@ -41,6 +41,8 @@ cd rocThrust; mkdir build; cd build
# Build options:
# DISABLE_WERROR - ON by default, This flag disable the -Werror compiler flag
# BUILD_TEST - OFF by default,
+# BUILD_EXAMPLES - OFF by default,
+# BUILD_BENCHMARKS - OFF by default,
# DOWNLOAD_ROCPRIM - OFF by default and at ON the rocPRIM will be downloaded to build folder,
#
# ! IMPORTANT !
@@ -85,6 +87,12 @@ target_link_libraries(<your_target> roc::rocthrust)
# Go to rocThrust build directory
cd rocThrust; cd build
+# Configure with examples flag on
+CXX=hipcc cmake -DBUILD_TEST=ON ..
+
+# Build tests
+make -j4
+
# To run all tests
ctest
@@ -116,6 +124,43 @@ static constexpr unsigned int seeds [] = {};
(3) this line should never be modified.
+
+## Running Examples
+```sh
+# Go to rocThrust build directory
+cd rocThrust; cd build
+
+# Configure with examples flag on
+CXX=hipcc cmake -DBUILD_EXAMPLES=ON ..
+
+# Build examples
+make -j4
+
+# Run the example you want to run
+# ./examples/example_thrust_<example-name>
+# For example:
+./examples/example_thrust_version
+
+# Example for linking with cpp files
+./examples/cpp_integration/example_thrust_linking
+```
+
+## Running Benchmarks
+```sh
+# Go to rocThrust build directory
+cd rocThrust; cd build
+
+# Configure with benchmarks flag on
+CXX=hipcc cmake -DBUILD_BENCHMARKS=ON ..
+
+# Build benchmarks
+make -j4
+
+# Run the benchmarks
+./benchmarks/benchmark_thrust_bench
+```
+
+
## Documentation
Documentation is available [here](https://rocthrust.readthedocs.io/en/latest/).

MODIFY
examples/CMakeLists.txt
examples/CMakeLists.txt
@@ -35,7 +35,7 @@ message (STATUS "Building examples")
add_thrust_example("arbitrary_transformation")
add_thrust_example("basic_vector")
add_thrust_example("bounding_box")
-add_thrust_example("bucket_sort2d")
+# add_thrust_example("bucket_sort2d")
add_thrust_example("constant_iterator")
add_thrust_example("counting_iterator")
add_thrust_example("device_ptr")
@@ -78,6 +78,6 @@ add_thrust_example("transform_iterator")
add_thrust_example("transform_output_iterator")
add_thrust_example("uninitialized_vector")
add_thrust_example("version")
-# add_thrust_example("weld_vertices")
+# add_thrust_example("weld_vertices") // this example does not work yet.
add_thrust_example("word_count")

Update README to include examples and benchmarking