tvm_tirx.testing.env.has_llvm

Contents

tvm_tirx.testing.env.has_llvm#

tvm_tirx.testing.env.has_llvm()#

True if the LLVM backend was built in.

Uses tvm_tirx.runtime.enabled rather than device existence: llvm maps to the CPU device, which exists even on a USE_LLVM=OFF build.

Return type:

bool