Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public:
}

::std::ptrdiff_t sz = nentries * block_size;
base = root_allocator.allocate(ctx, place, sz, prereqs);
base = root_allocator.allocate(ctx, this->place, sz, prereqs);
assert(sz > 0);
assert(base);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1467,8 +1467,7 @@ public:
continue;
}

// TODO THIS MAY BE A BUG: do we care about managed devices or host?
const auto memory_node = data_place::device(static_cast<int>(n - 2));
const auto memory_node = from_index(n);
// Skip the target memory node in this step
if (memory_node == target_memory_node)
{
Expand Down Expand Up @@ -1732,7 +1731,9 @@ inline void reserved::logical_data_untyped_impl::erase()

data_instance& ref_instance = get_data_instance(ref_id);
const data_place& ref_dplace = ref_instance.get_dplace();
auto e = ref_dplace.affine_exec_place();
_CCCL_ASSERT(!ref_dplace.is_affine() && !ref_dplace.is_invalid(),
"ref_dplace must be resolved to a concrete place before erase");
auto e = ref_dplace.affine_exec_place();
l.reconstruct_after_redux(ctx, ref_id, e, wb_prereqs);

h_state.current_mode = access_mode::none;
Expand Down
5 changes: 5 additions & 0 deletions cudax/include/cuda/experimental/__stf/internal/task.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ void dep_allocate(
{
auto& inst = d.get_data_instance(instance_id);

_CCCL_ASSERT(!dplace.is_affine() && !dplace.is_invalid(),
"dep_allocate requires a concrete data_place (resolved upstream in acquire)");

/*
* DATA LAZY ALLOCATION
*/
Expand Down Expand Up @@ -471,6 +474,8 @@ void dep_allocate(
inst.allocated_size = s;
inst.set_allocated(true);
inst.reclaimable = true;
_CCCL_ASSERT(!inst.get_dplace().is_affine() && !inst.get_dplace().is_invalid(),
"instance dplace must be concrete after allocation");
break;
}

Expand Down

This file was deleted.

Loading
Loading