FreeTensor
Loading...
Searching...
No Matches
Public Member Functions | List of all members
freetensor::MemoizedSchedules Class Reference

#include <memoized_schedules.h>

Public Member Functions

ScheduleLog lookupOrCreate (const ScheduleLog &log)
 

Detailed Description

Storage of all tried scheduling decisions for all Schedules forked from a common one

When we are searching for best scheduling decisions, we often try similar ones, for example Original -> Schedule A -> Schedule B and Original -> Schedule A -> Schedule C. Looking up from this class saves time for applying identical decisions

This class is thread-safe

This class is not named cache or storage, to avoid confusion with hardware features

Member Function Documentation

◆ lookupOrCreate()

ScheduleLog freetensor::MemoizedSchedules::lookupOrCreate ( const ScheduleLog log)
inline

Lookup for a particular schedule

If there is a memoized result, return the memoized one to save memory (so the shared linked lists form a tree). If not found, save and return the new log


The documentation for this class was generated from the following file: