Skip to content

Commit

Permalink
Merge pull request #89 from LLNL/bugfix/zagaris2/disable-cub-by-default
Browse files Browse the repository at this point in the history
Add option to Enable/Disable CUB when building with CUDA
  • Loading branch information
gzagaris committed Sep 6, 2019
2 parents 3b46347 + aa3a8a0 commit cd52db5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ The Axom project release numbers follow [Semantic Versioning](http://semver.org/
### Added
- Added support in Mint for reading and writing an unstructured mesh in the [SU2 Mesh file format].
This includes support for both single and mixed cell type topology unstructured mesh types.
- Added a new option to enable/disable use of CUB, AXOM_USE_CUB, which is disabled by default. This
allows to disable CUB to circumvent issues encountered with the device linker.

### Removed

Expand Down
1 change: 1 addition & 0 deletions src/axom/config.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
*/
#cmakedefine AXOM_USE_CONDUIT
#cmakedefine AXOM_USE_CUDA
#cmakedefine AXOM_USE_CUB
#cmakedefine AXOM_USE_FMT
#cmakedefine AXOM_USE_HDF5
#cmakedefine AXOM_USE_MFEM
Expand Down
2 changes: 1 addition & 1 deletion src/axom/spin/internal/linear_bvh/build_radix_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void custom_sort( ExecSpace, uint32*& mcodes, int32 size, int32* iter )

//------------------------------------------------------------------------------
#if defined(AXOM_USE_CUDA) && defined(AXOM_USE_RAJA) && \
defined(RAJA_ENABLE_CUDA)
defined(RAJA_ENABLE_CUDA) && defined(AXOM_USE_CUB)
template < int BLOCK_SIZE >
void custom_sort( spin::CUDA_EXEC< BLOCK_SIZE >,
uint32*& mcodes, int32 size, int32* iter )
Expand Down
2 changes: 2 additions & 0 deletions src/cmake/AxomOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ cmake_dependent_option(AXOM_ENABLE_TESTS "Enables Axom Tests" ON "ENABLE_TESTS"
cmake_dependent_option(AXOM_ENABLE_DOCS "Enables Axom Docs" ON "ENABLE_DOCS" OFF)
cmake_dependent_option(AXOM_ENABLE_EXAMPLES "Enables Axom Examples" ON "ENABLE_EXAMPLES" OFF)

cmake_dependent_option(AXOM_USE_CUB "Enables use of CUB" OFF "ENABLE_CUDA" OFF)

cmake_dependent_option(AXOM_USE_MPI3 "Enables use of MPI-3 features" OFF "ENABLE_MPI" OFF)
mark_as_advanced(AXOM_USE_MPI3)

0 comments on commit cd52db5

Please sign in to comment.