Class Job¶
Defined in File job.h
Class Documentation¶
-
class
switchml::Job¶ A Job is used to represent work to be done by SwitchML.
It is created by the Context when an operation is requested, submitted to the Scheduler, then the scheduler creates instances of JobSlice from it to give it to the worker threads.
Public Functions
-
Job(Tensor tensor, JobType job_type, ExtraJobInfo extra_job_info)¶ Construct a new Job object.
- Parameters
tensor – [in] The tensor to work on for this job.
job_type – [in] The type of the job.
extra_job_info – [in] Extra information that might be needed for the job.
-
~Job() = default¶
-
void
WaitToComplete()¶ Block the calling thread until the job completes or fails.
Public Members
-
const ExtraJobInfo
extra_job_info_¶ Extra information specific to the collective communication job.
-