Skip to content
Merged
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
4 changes: 3 additions & 1 deletion src/tirx/analysis/verify_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ class MemoryAccessVerifier final : protected StmtExprVisitor {
/// Interface of VerifyMemory pass
std::vector<ffi::String> VerifyMemory_(const PrimFunc& func) {
auto target = func->GetAttr<Target>(tvm::attr::kTarget);
TVM_FFI_ICHECK(target.defined()) << "VerifyMemory: Require the target attribute";
// Skip verification for functions without a target attribute, as they are
// typically host-only helper functions that do not have device-memory constraints.
if (!target.defined()) return {};

VLOG(1) << "verifying memory for target '" << target.value()->str()
<< "' for primitive:" << std::endl
Expand Down
Loading