     }
 #endif
 
+#undef MAX_BLOCK_SIZE
+#undef WARP_SIZE
+
 } // end namespace gpu
 
 } // end namespace hpmc

namespace hpmc {

namespace gpu {

//! Wraps arguments to hpmc_* template functions
/*! \ingroup hpmc_data_structs */

    assert(args.d_excell_size);
    assert(args.d_check_overlaps);

    // select the kernel template according to the next power of two of the block size
    unsigned int launch_bounds = WARP_SIZE;
    while (launch_bounds < args.block_size)
        launch_bounds *= 2;

    kernel::depletants_launcher<Shape>(args, implicit_args, params, launch_bounds, int2type<MAX_BLOCK_SIZE>());
    }

//! Driver for kernel::hpmc_update_pdata()
