Function tvm::tirx::VerifyMemory

Function tvm::tirx::VerifyMemory#

Function Documentation#

bool tvm::tirx::VerifyMemory(const Function &func)#

Verify if memory accesses are legal for a specific target device type.

In the case that tgt is cuda, if not all workload is bound with threads, CPU code is generated that tries to access GPU memory, which is illegal. This pass performs verification for this case.

Parameters:

func – The function to be verified.

Returns:

Success of memory verification.