 
 //! Kernel to insert depletants on-the-fly
 template< class Shape, unsigned int max_threads >
+#ifdef __HIP_PLATFORM_NVCC__
 __launch_bounds__(max_threads)
+#endif
 __global__ void clusters_insert_depletants(const Scalar4 *d_postype,
                                      const Scalar4 *d_orientation,
                                      const unsigned int *d_tag,


#include "IntegratorHPMCMonoGPU.cuh"

#define MAX_BLOCK_SIZE 1024
#define MIN_BLOCK_SIZE 128 // a reasonable minimum to limit the number of template instantiations

namespace hpmc
{


//! Check narrow-phase overlaps
template< class Shape, unsigned int max_threads >
#ifdef __HIP_PLATFORM_NVCC__
__launch_bounds__(max_threads)
#endif
__global__ void hpmc_cluster_overlaps(const Scalar4 *d_postype,
                           const Scalar4 *d_orientation,
                           const unsigned int *d_tag,
