@@ -242,7 +242,7 @@ public:
242
242
243
243
reserved::logical_data_state state;
244
244
245
- // For temporary or redux accesses, we need to be able to find an available entry
245
+ // For temporary or relaxed accesses, we need to be able to find an available entry
246
246
::std::vector<data_instance> used_instances;
247
247
248
248
// A string useful for debugging purpose
@@ -917,7 +917,7 @@ public:
917
917
break ;
918
918
}
919
919
920
- case access_mode::redux :
920
+ case access_mode::relaxed :
921
921
current_instance.set_msir (reserved::msir_state_id::reduction);
922
922
break ;
923
923
default :
@@ -1238,9 +1238,9 @@ public:
1238
1238
return task_dep_untyped (*this , access_mode::rw, mv (dp));
1239
1239
}
1240
1240
1241
- task_dep_untyped redux (::std::shared_ptr<reduction_operator_base> op, data_place dp = data_place::affine)
1241
+ task_dep_untyped relaxed (::std::shared_ptr<reduction_operator_base> op, data_place dp = data_place::affine)
1242
1242
{
1243
- return task_dep_untyped (*this , access_mode::redux , mv (dp), op);
1243
+ return task_dep_untyped (*this , access_mode::relaxed , mv (dp), op);
1244
1244
}
1245
1245
1246
1246
// /@}
@@ -1732,7 +1732,7 @@ inline void reserved::logical_data_untyped_impl::erase()
1732
1732
assert (ref_id != instance_id_t ::invalid);
1733
1733
1734
1734
// Get the state in which we store previous writer, readers, ...
1735
- if (h_state.current_mode == access_mode::redux )
1735
+ if (h_state.current_mode == access_mode::relaxed )
1736
1736
{
1737
1737
// Reconstruction of the data on the reference data place needed
1738
1738
@@ -1863,14 +1863,14 @@ inline event_list enforce_stf_deps_before(
1863
1863
auto & dot = *bctx.get_dot ();
1864
1864
const bool dot_is_tracing = dot.is_tracing ();
1865
1865
1866
- if (mode == access_mode::redux )
1866
+ if (mode == access_mode::relaxed )
1867
1867
{
1868
1868
// A reduction only needs to wait for previous accesses on the data instance
1869
- ctx_.current_mode = access_mode::redux ;
1869
+ ctx_.current_mode = access_mode::relaxed ;
1870
1870
1871
1871
if (dot_is_tracing)
1872
1872
{
1873
- // Add this task to the list of task accessing the logical data in redux mode
1873
+ // Add this task to the list of task accessing the logical data in relaxed mode
1874
1874
// We only store its id since this is used for dot
1875
1875
ctx_.pending_redux_id .push_back (task.get_unique_id ());
1876
1876
}
@@ -1882,13 +1882,13 @@ inline event_list enforce_stf_deps_before(
1882
1882
}
1883
1883
1884
1884
// This is not a reduction, but perhaps we need to reconstruct the data first?
1885
- if (ctx_.current_mode == access_mode::redux )
1885
+ if (ctx_.current_mode == access_mode::relaxed )
1886
1886
{
1887
1887
assert (eplace.has_value ());
1888
1888
if (dot_is_tracing)
1889
1889
{
1890
1890
// Add a dependency between previous tasks accessing the handle
1891
- // in redux mode, and this task which forces its
1891
+ // in relaxed mode, and this task which forces its
1892
1892
// reconstruction.
1893
1893
for (const int redux_task_id : ctx_.pending_redux_id )
1894
1894
{
@@ -1998,7 +1998,7 @@ inline event_list enforce_stf_deps_before(
1998
1998
template <typename task_type>
1999
1999
inline void enforce_stf_deps_after (logical_data_untyped& handle, const task_type& task, const access_mode mode)
2000
2000
{
2001
- if (mode == access_mode::redux )
2001
+ if (mode == access_mode::relaxed )
2002
2002
{
2003
2003
// no further action is required
2004
2004
return ;
@@ -2295,9 +2295,9 @@ public:
2295
2295
}
2296
2296
2297
2297
template <typename ... Pack>
2298
- task_dep<T> redux (Pack&&... pack)
2298
+ task_dep<T> relaxed (Pack&&... pack)
2299
2299
{
2300
- return task_dep<T>(*this , access_mode::redux , ::std::forward<Pack>(pack)...);
2300
+ return task_dep<T>(*this , access_mode::relaxed , ::std::forward<Pack>(pack)...);
2301
2301
}
2302
2302
// /@}
2303
2303
};
0 commit comments