Template Function heongpu::input_storage_manager

Function Documentation

template<typename T, typename F>
void heongpu::input_storage_manager(T &object, F function, ExecutionOptions options, bool is_input_output_same)

Manages the input storage and conditionally transfers data to the appropriate location (e.g., device or host) before executing a function on the object.

Template Parameters:
  • T – The type of the object to manage.

  • F – The callable type of the function to execute on the object.

Parameters:
  • object – The object whose storage is being managed.

  • function – The callable function that will operate on the object.

  • options – A set of execution options defining storage behavior and stream configuration.

  • is_input_output_same – A flag indicating whether the input and output storage should remain consistent.