Skip to content

Commit

Permalink
#11: run only clustering algorithm with CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Sep 27, 2024
1 parent ff787e5 commit aa6949a
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions tests/collision_object_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,11 @@ TEST_CASE( "collision_object broadphase", "[vt]")

TEST_CASE( "collision_object multiple broadphase", "[vt]")
{
auto split_method
= GENERATE( bvh::split_algorithm::geom_axis, bvh::split_algorithm::ml_geom_axis, bvh::split_algorithm::clustering );
auto split_method = GENERATE(
#ifndef BVH_ENABLE_CUDA
bvh::split_algorithm::geom_axis, bvh::split_algorithm::ml_geom_axis,
#endif
bvh::split_algorithm::clustering );
bvh::collision_world world( 2 );

auto &obj = world.create_collision_object();
Expand Down Expand Up @@ -378,8 +381,11 @@ void verify_single_narrowphase( const bvh::vt::reducable_vector< detailed_narrow

TEST_CASE( "collision_object narrowphase", "[vt]")
{
auto split_method
= GENERATE( /*bvh::split_algorithm::geom_axis, bvh::split_algorithm::ml_geom_axis,*/ bvh::split_algorithm::clustering );
auto split_method = GENERATE(
#ifndef BVH_ENABLE_CUDA
bvh::split_algorithm::geom_axis, bvh::split_algorithm::ml_geom_axis,
#endif
bvh::split_algorithm::clustering );

bvh::vt::debug("{}: split method: {}\n", ::vt::theContext()->getNode(), static_cast< int >( split_method ) );

Expand Down Expand Up @@ -448,8 +454,11 @@ TEST_CASE( "collision_object narrowphase", "[vt]")

TEST_CASE( "collision_object narrowphase multi-iteration", "[vt]")
{
auto split_method
= GENERATE( bvh::split_algorithm::geom_axis, bvh::split_algorithm::ml_geom_axis, bvh::split_algorithm::clustering );
auto split_method = GENERATE(
#ifndef BVH_ENABLE_CUDA
bvh::split_algorithm::geom_axis, bvh::split_algorithm::ml_geom_axis,
#endif
bvh::split_algorithm::clustering );

bvh::vt::debug("{}: split method: {}\n", ::vt::theContext()->getNode(), static_cast< int >( split_method ) );

Expand Down Expand Up @@ -557,8 +566,11 @@ TEST_CASE( "collision_object narrowphase multi-iteration", "[vt]")

TEST_CASE( "collision_object narrowphase no overlap multi-iteration", "[vt]")
{
auto split_method
= GENERATE( bvh::split_algorithm::geom_axis, bvh::split_algorithm::ml_geom_axis, bvh::split_algorithm::clustering );
auto split_method = GENERATE(
#ifndef BVH_ENABLE_CUDA
bvh::split_algorithm::geom_axis, bvh::split_algorithm::ml_geom_axis,
#endif
bvh::split_algorithm::clustering );
bvh::collision_world world( 2 );

auto &obj = world.create_collision_object();
Expand Down

0 comments on commit aa6949a

Please sign in to comment.