Skip to content

Commit

Permalink
Merge pull request #1851 from glotzerlab/disable-mpcd-hip
Browse files Browse the repository at this point in the history
Default `BUILD_MPCD` off on the HIP platform.
  • Loading branch information
joaander authored Jul 22, 2024
2 parents 8cb2c95 + 7a73ecd commit 9cbd697
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,13 @@ else ()
option(BUILD_HPMC "Build the hpmc package" off)
endif()
option(BUILD_METAL "Build the metal package" on)

if (ENABLE_GPU AND HOOMD_GPU_PLATFORM STREQUAL "HIP")
message("Defaulting BUILD_MPCD=off due to HIP GPU platform.")
option(BUILD_MPCD "Build the mpcd package" off)
else()
option(BUILD_MPCD "Build the mpcd package" ${BUILD_MD})
endif()

# Optionally use TBB for threading
option(ENABLE_TBB "Enable support for Threading Building Blocks (TBB)" off)
Expand Down

0 comments on commit 9cbd697

Please sign in to comment.