Skip to content
Merged

try fix #14246

Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions runtime/backend/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ struct BackendOption {
char key[kMaxOptionKeyLength]{};
// value is the value of the backend option, like 4, true, etc
OptionValue value;

BackendOption(const char* k, OptionValue v) {
strncpy(key, k, kMaxOptionKeyLength);
key[kMaxOptionKeyLength - 1] = '\0'; // ensure null-termination
value = v;
}
};

/**
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,13 @@ def run(self):
tmp_path = Path(tmpdir)
sdk_path = _download_qnn_sdk(dst_folder=tmp_path)

logging.info("sdk_path: ", sdk_path)
if not sdk_path:
raise RuntimeError(
"Qualcomm SDK not found, cannot build backend"
)

# Determine paths
prj_root = Path(__file__).parent.resolve()
logging.info("prj_root: ", prj_root)
build_sh = prj_root / "backends/qualcomm/scripts/build.sh"
build_root = prj_root / "build-x86"

Expand Down
Loading