@@ -943,21 +943,21 @@ public:
943943 // Grid interface - host is a 1-element grid
944944 ::std::shared_ptr<exec_place::impl> get_place (size_t idx) override
945945 {
946- EXPECT (idx == 0 , " Index out of bounds for host exec_place" );
946+ _CCCL_ASSERT (idx == 0 , " Index out of bounds for host exec_place" );
947947 // Static instance - use no-op deleter instead of shared_from_this()
948948 return ::std::shared_ptr<impl>(this , [](impl*) {});
949949 }
950950
951951 // Activation - no-op for host
952952 exec_place activate (size_t idx) const override
953953 {
954- EXPECT (idx == 0 , " Index out of bounds for host exec_place" );
954+ _CCCL_ASSERT (idx == 0 , " Index out of bounds for host exec_place" );
955955 return exec_place ();
956956 }
957957
958958 void deactivate (const exec_place& prev, size_t idx = 0 ) const override
959959 {
960- EXPECT (idx == 0 , " Index out of bounds for host exec_place" );
960+ _CCCL_ASSERT (idx == 0 , " Index out of bounds for host exec_place" );
961961 _CCCL_ASSERT (!prev.get_impl (), " Host deactivate expects empty prev" );
962962 }
963963
@@ -1012,7 +1012,7 @@ public:
10121012
10131013 ::std::shared_ptr<exec_place::impl> get_place (size_t idx) override
10141014 {
1015- EXPECT (idx == 0 , " Index out of bounds for device_auto exec_place" );
1015+ _CCCL_ASSERT (idx == 0 , " Index out of bounds for device_auto exec_place" );
10161016 // Static instance - use no-op deleter instead of shared_from_this()
10171017 return ::std::shared_ptr<impl>(this , [](impl*) {});
10181018 }
@@ -1061,7 +1061,7 @@ public:
10611061
10621062 exec_place activate (size_t idx) const override
10631063 {
1064- EXPECT (idx == 0 , " Index out of bounds for device exec_place" );
1064+ _CCCL_ASSERT (idx == 0 , " Index out of bounds for device exec_place" );
10651065 auto old_dev_id = cuda_try<cudaGetDevice>();
10661066 if (old_dev_id != devid_)
10671067 {
@@ -1072,7 +1072,7 @@ public:
10721072
10731073 void deactivate (const exec_place& prev, size_t idx = 0 ) const override
10741074 {
1075- EXPECT (idx == 0 , " Index out of bounds for device exec_place" );
1075+ _CCCL_ASSERT (idx == 0 , " Index out of bounds for device exec_place" );
10761076 auto current_dev_id = cuda_try<cudaGetDevice>();
10771077 auto restored_dev_id = device_ordinal (prev.affine_data_place ());
10781078 if (current_dev_id != restored_dev_id)
@@ -1328,13 +1328,13 @@ inline exec_place data_place::affine_exec_place() const
13281328
13291329inline ::std::shared_ptr<exec_place::impl> exec_place::impl::get_place (size_t idx)
13301330{
1331- EXPECT (idx == 0 , " Index out of bounds for scalar exec_place" );
1331+ _CCCL_ASSERT (idx == 0 , " Index out of bounds for scalar exec_place" );
13321332 return shared_from_this ();
13331333}
13341334
13351335inline ::std::shared_ptr<exec_place::impl> exec_place_device::impl::get_place (size_t idx)
13361336{
1337- EXPECT (idx == 0 , " Index out of bounds for device exec_place" );
1337+ _CCCL_ASSERT (idx == 0 , " Index out of bounds for device exec_place" );
13381338 // Static instance - use no-op deleter instead of shared_from_this()
13391339 return ::std::shared_ptr<impl>(this , [](impl*) {});
13401340}
0 commit comments